About HTTP PUT / POST using AT command

testman
Posts: 3
Joined: Wed Mar 03, 2021 1:00 am

About HTTP PUT / POST using AT command

Postby testman » 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.

Who is online

Users browsing this forum: No registered users and 69 guests