POST in Windev and Windev Mobile

Startbeitrag von PETER ZHOU am 12.09.2013 07:18

Hi,

Can provide sample POST code ?
and also possible POST code for XML file ?

Regards,

PETER ZHOU

Antworten:

Quote
PETER ZHOU
Hi,

Can provide sample POST code ?
and also possible POST code for XML file ?

Regards,

PETER ZHOU


Sorry..need to correct my question.

Does anybody have any sample codes on using HTTPREQUEST() to POST XML file ?

Regards,

PETER ZHOU

von PETER ZHOU - am 12.09.2013 14:55
Quote
PETER ZHOU
Quote
PETER ZHOU
Hi,

Can provide sample POST code ?
and also possible POST code for XML file ?

Regards,

PETER ZHOU


Sorry..need to correct my question.

Does anybody have any sample codes on using HTTPREQUEST() to POST XML file ?

Regards,

PETER ZHOU


Hi,

Anybody can help with some sample code?

Regards,

PETER ZHOU

von PETER ZHOU - am 14.09.2013 14:46
Peter,
Here is a simple example.
sURL is string = "www.somesite.com/something.aspx"
sXML is string = build your xml here or load it from a file
HttpRequest(sURL,"","",sXML,"","","")
Trace(HttpGetRssult())

But maybe your problem is more complicated?

von Arie - am 14.09.2013 14:57
Quote
Arie Mars
Peter,
Here is a simple example.
sURL is string = "www.somesite.com/something.aspx"
sXML is string = build your xml here or load it from a file
HttpRequest(sURL,"","",sXML,"","","")
Trace(HttpGetRssult())

But maybe your problem is more complicated?



Arie,

Thank you for the sample code, its just that I need some sample code to start testing

Regards,

PETER ZHOU

von PETER ZHOU - am 14.09.2013 15:16
Hi Peter!

If you want to POST something to a script, you need the Functions HTTPCreateForm, HTTPAddParameter and HTTPSendForm.

With this you can POST any Data you like to a Webpage.

Example is at: http://doc.windev.com/en-US/?10000171901000000000000&name=httpsendform_example&q=HTTPSendForm

Best regards
Andreas

von ADo - am 14.09.2013 16:30
Quote
ADo
Hi Peter!

If you want to POST something to a script, you need the Functions HTTPCreateForm, HTTPAddParameter and HTTPSendForm.

With this you can POST any Data you like to a Webpage.

Example is at: http://doc.windev.com/en-US/?10000171901000000000000&name=httpsendform_example&q=HTTPSendForm

Best regards
Andreas


Thank you. I will try it out.

Regards,

PETER ZHOU

von PETER ZHOU - am 16.09.2013 00:47
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.