Hi All,
I'm working on a project with an ESP32 and a SIM module, where I'm sending HTTP GET requests to various websites. I'm encountering an issue with the AT+HTTPREAD
command after receiving a status code of 301 from the AT+HTTPACTION=0
command. Below is the output I'm getting:
Res from module:
AT+HTTPREAD
ERROR
Sending HTTP GET request to: http://www.github.com
C: AT+HTTPPARA="URL","http://www.github.com"
Res from module:
AT+HTTPPARA="URL","http://www.github.com"
OK
C: AT+HTTPACTION=0
Res from module:
AT+HTTPACTION=0
OK
+HTTPACTION: 0,301,0
HTTP Status Code: 301
C: AT+HTTPREAD
Res from module:
AT+HTTPREAD
ERROR
C: AT+HTTPTERM
Res from module:
AT+HTTPTERM
OK
C: AT+CIPSHUT
Res from module:
AT+CIPSHUT
ERROR