Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create HTTP Request object
Message
 
 
To
21/12/2016 13:49:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01645753
Message ID:
01645839
Views:
50
>>>using https://west-wind.com/webconnection/docs/_0jj1abf2k.htm
>>>
>>>o = newObject('wwHTTP', 'wwHTTP.prg')
>>>? o.HTTPget('https://www.levelextreme.com/')
>>>
>>
>>Thank you!
>
>with parameters:
>
>o = newObject('wwHTTP', 'wwHTTP.prg')
>o.addPostKey('key1', 'value1')
>o.addPostKey('key2', 'value2')
>…
>? o.HTTPget('https://www.levelextreme.com/') && POST verb used because of parms added above
>
Sorry to ask you one more question on the above topic. If, instead of adding a PostKey to the object, I wanted to add a Header, is there a method for that? That, I want to create an HTTP object (in order to call GET) and add a value to the Header of the object.

Update. The AddHeader() method seems to work. At least it does no give an error.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform