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
Miscellaneous
Thread ID:
00700334
Message ID:
00700765
Views:
13
>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))
>
Take a look on West Wind Internet Protocols (http://www.west-wind.com/wwIPStuff.ASP) and KB article Q311306 "HOWTO: Use Visual FoxPro to Download a Web Page from the Internet" (http://support.microsoft.com/default.aspx?scid=kb;en-us;Q311306)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform