2018-01-09 05:30 AM
Hello, everybody.
I want to use HTTP client mode. I should send the next message:
api/Tokens?username=test&password=123456789&serialnumber=123456789
to the server:
https://messagebus.example.com
and get the response.
I try to make next:
AT+S.HTTPPOST=messagebus.example.com,/api/Tokens,,,,,Get.txt,Send.txt
In send file i have
username=
test
&password=
123456789
&serialnumber=
123456789
but, server give me Error 404 answer. I think, there is a problem in my AT+S.HTTPOST mesage.
2018-01-09 07:48 AM
Probably I'm using wrong URL...
I get 'DNS error' (502 Bad Gateway) with the browser, and 'Http Client Error:0' with the module. Is it correct 'messagebus.example.com'?
2018-01-09 11:28 AM
No, it is just for example.
2018-01-10 03:28 AM
Don't know how to help you...
Try to bypass the send.txt file, and directly put form content into <path&query> parameter. Same result?
AT+S.HTTPPOST=messagebus.example.com,/api/Tokens?
username=test&password=123456789&serialnumber=123456789
,,,,,,2018-01-11 09:51 AM
YES, it works!!
Thanks))