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