|
| Iniciado por guest, 18,jun. 2016 12:53 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 18,junio 2016 - 12:53 |
Hello Gang!! What is the difference between these two codes?? ============================================ sPostParameter is string = "name = Andy"
IF HTTPRequest("www.mysite.com", "", "", sPostParameter) = True THEN Info("Request OK, result:", HTMLToText(HTTPGetResult(httpResult))) END
==========================================
HTTPCreateForm("FORM" ) HTTPAddParameter("FORM", "name", "Andy" )
IF HTTPSendForm("FORM","www.mysite.com" ) = True THEN Info("Request OK, result:", HTMLToText(HTTPGetResult(httpResult))) END
===========================================
The first code doesnot work while the second code works correctly. Any Idea?? Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,junio 2016 - 13:54 |
Hi
in the first code, you are EXPLICITELY using the syntax requesting POST mode. in the second you are not.
Everything is in the help
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,junio 2016 - 20:46 |
Hi
PostParameter is string = "name = Andy"
name= andy is seen as 1 string with = in it.
Try
"Name" + " "+ "Andy"
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,junio 2016 - 01:49 |
Thanks Fabrice !! I guess in second code also Post mode is explicitely defined . because the default value is post mode . Further why my first code is not working and second is working fine ?? Thanks !! |
| |
| |
| | | |
|
| | | | |
| | |
|