Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems using WinSock
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Problems using WinSock
Divers
Thread ID:
00691425
Message ID:
00691425
Vues:
37
Hi guys.

I'm actually using winsock to access a service (http 80) via sending/recieving strings. But I'm having problems retrieving the data from the winsock buffer using the GetData() method. Here is a sample of what I have done so far:

objWinsock = CreateObject("Mswinsock.winsock")
objWinsock.connect("www.mysite.com",80)
objWinsock.SendData("GET http://www.mysite.com/index.html"+chr(13))
cResults = ""
objWinsock.GetData(@cResults)
?cResults

The problem is that the variable cResults returns blank after executing the GetData Method, and I assume it should return with the data that the server returns to the client. I'd like to know if I'm doing something wrong or have I missed something.



Thanks in advance.

Nelson
"If glory comes after death, I have no hurry"
Marcial
Répondre
Fil
Voir

Click here to load this message in the networking platform