Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create HTTP Request object
Message
 
 
To
21/12/2016 11:09:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01645753
Message ID:
01645786
Views:
41
>>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
>
Thank you very much. I will try this code.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform