Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create HTTP Request object
Message
De
21/12/2016 11:09:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01645753
Message ID:
01645783
Vues:
66
>Hi,
>
>Do you know, and if yes, how, to create an HTTP Request object in VFP?
>
>TIA

Depending on your plans, you can use the ServerXMLHTTP class.
LOCAL HttpRequest AS MSXML2.ServerXMLHTTP60
LOCAL HttpResponseEndPoint AS String
LOCAL Reply AS String

m.HttpResponseEndPoint = "https://www.levelextreme.com"

m.HttpRequest = CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0")

m.HttpRequest.Open("GET", m.HttpResponseEndPoint, .F.)
m.HttpRequest.Send()

m.Reply = m.HttpRequest.Responsetext

? m.Reply
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform