We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Dear Sir,
I am using GL868-DUAL module (10.00.187), I am trying to send and receive data using http dedicated AT command.
I am able to read data from HTTP server, but when i am trying to post data aver http server, Please find attached log file.
Please let me know, If i am doing some thing wrong.
Regards,
Diwakar
If you are not using flow control set AT&K0.
Dear Sir,
I am not using flow control.
Kindly find attached HTTP send and received log file. you also can test same HTTP server.
Please let me know, What am I doing wrong.
Regards,
Diwakar
Waiting for your reply.
Hello Diwakar,
This is an example of a HTTP POST:
POST /post.php?dir=MyDIR HTTP/1.1
Connection: close
Host: test.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 16
1234567890123456
And this is the same POST, but converted to AT commands:
AT#HTTPCFG=1,"test.com"
OK
AT#HTTPSND=1,0,"/post.php?dir=MyDIR",16,"0"
>>> 1234567890123456
OK
Thanks for your reply.
Hello Taj
Can you please explain what is the practical purpose and effect of the last "0" in your example:
AT#HTTPSND=1,0,"/post.php?dir=MyDIR",16,"0"
Thanks, Tom
This is <post_param> used for POST Content-Type header.