Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retreive webpage with winsock
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Retreive webpage with winsock
Divers
Thread ID:
00700334
Message ID:
00700334
Vues:
56
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))
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform