About HTTP PUT / POST using AT command
Posted: Tue Mar 23, 2021 8:14 am
Hello, All!
I want to access the HTTP server with AT command.
HTTP Server
IP address: 192.168.0.123
URL: http://192.168.0.123/aaa/bbb/ccc
query parameter: test1=1&test2=2
#TCP Server Connect
>AT+CIPSTART="TCP","192.168.0.123",80
→Success
I get a 400 error with the command below.
====================================================
>AT+CIPSEND
>PUT http://192.168.0.123/aaa/bbb/ccc?test1=1&test2=2
Content-Type: application/json
Content-Length: 15
resident_id=2&status=2&time_to_mainte=345&add_info=0
>AT+CIPSEND
>PUT http://192.168.0.123/aaa/bbb/ccc?test1=1&test2=2
====================================================
By the way, we have confirmed that the GET process is successful.
Is it possible to execute PUT or POST with the AT command? Please give me some advice.
Thank you.
I want to access the HTTP server with AT command.
HTTP Server
IP address: 192.168.0.123
URL: http://192.168.0.123/aaa/bbb/ccc
query parameter: test1=1&test2=2
#TCP Server Connect
>AT+CIPSTART="TCP","192.168.0.123",80
→Success
I get a 400 error with the command below.
====================================================
>AT+CIPSEND
>PUT http://192.168.0.123/aaa/bbb/ccc?test1=1&test2=2
Content-Type: application/json
Content-Length: 15
resident_id=2&status=2&time_to_mainte=345&add_info=0
>AT+CIPSEND
>PUT http://192.168.0.123/aaa/bbb/ccc?test1=1&test2=2
====================================================
By the way, we have confirmed that the GET process is successful.
Is it possible to execute PUT or POST with the AT command? Please give me some advice.
Thank you.