Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retreive webpage with winsock
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Retreive webpage with winsock
Miscellaneous
Thread ID:
00700334
Message ID:
00700334
Views:
55
How can I retreive my webpages with Winsock connection?

on my connect button, I have
IF thisform.ws.object.State<>0
	thisform.ws.object.Close 
ENDIF

thisform.ws.object.connect("www.mysite.com",80)
And on the WS object's DataArrival method, I have the following code
LPARAMETERS bytestotal

LOCAL strData as String 

strData = ""  && Define string to pass to GetData

This.Object.GetData(@strData)
ThisForm.edit1.Value = strData
I think I should have the following code, but it doesn't work, I receive in my strData string a message that tell me the command is not understood by the server
thisform.ws.sendData("GET http://www.mysite.com/index.html"+chr(13))
Next
Reply
Map
View

Click here to load this message in the networking platform