Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create HTTP Request object
Message
 
 
À
21/12/2016 13:49:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01645753
Message ID:
01645839
Vues:
51
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform