HTTPS GET and POST request
Posted: Sun May 25, 2025 7:47 am
Hi team,
Am currently working on ESP32 HTTPS GET and POST request, am using ESP32C3 module with latest AT firmware loaded in it, am using below AT command to get some JSON response from cloud
AT+HTTPCLIENT=3,1, .... POST command, the issue comes here as below am getting response in chunks of 2times, lets say
+HTTPCLIENT:136,{"success":true,"message":"Gateway wifi Info fetched Successfully","data":{"gateway_ids":["123004","123005"],"ip_addresses":["x.x.x.x
+HTTPCLIENT:100,0.166","x.x.x."],"connected_cnt":[7,1],"wifi_networks":"ESP32","wifi_passwords":"test@1"}}
OK
Why am getting response in 2 chunks, where could be the issue ?
1) What are the possible ways to get response in single chunks, do i need to configure any headers before sending command, if yes can you please share the set of commands
2) How many bytes can ESP32C3 send as response in single chunk for AT+HTTPCLIENT request ? Is there any other commands preferably more used for HTTPs GET and POST request for AT FIRMWARE support? could you suggest other than above command
3) what is the difference between AT+HTTPCPOST and AT+HTTPCLIENT, when to use it accordingly ?
Am currently working on ESP32 HTTPS GET and POST request, am using ESP32C3 module with latest AT firmware loaded in it, am using below AT command to get some JSON response from cloud
AT+HTTPCLIENT=3,1, .... POST command, the issue comes here as below am getting response in chunks of 2times, lets say
+HTTPCLIENT:136,{"success":true,"message":"Gateway wifi Info fetched Successfully","data":{"gateway_ids":["123004","123005"],"ip_addresses":["x.x.x.x
+HTTPCLIENT:100,0.166","x.x.x."],"connected_cnt":[7,1],"wifi_networks":"ESP32","wifi_passwords":"test@1"}}
OK
Why am getting response in 2 chunks, where could be the issue ?
1) What are the possible ways to get response in single chunks, do i need to configure any headers before sending command, if yes can you please share the set of commands
2) How many bytes can ESP32C3 send as response in single chunk for AT+HTTPCLIENT request ? Is there any other commands preferably more used for HTTPs GET and POST request for AT FIRMWARE support? could you suggest other than above command
3) what is the difference between AT+HTTPCPOST and AT+HTTPCLIENT, when to use it accordingly ?