Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems using WinSock
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Problems using WinSock
Miscellaneous
Thread ID:
00691425
Message ID:
00691425
Views:
38
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
Reply
Map
View

Click here to load this message in the networking platform