Code:
AT+CIPSTART=0,"TCP","192.168.1.103",80\r\n
AT+CIPSEND=0,132\r\n
POST /insert.php, HTTP/1.1\r\n
Host: 192.168.1.103\r\n
User-Agent: Mozilla\r\n
Content-Type: application/x-www-form-urlencoded\r\n\r\n"]
\r\n\r\n
Content-Length: 20\r\n
\r\n\r\n
Col_1=,Dec Value1,&Col_2=,Dec Value2,\r\n\r\n
\r\n\r\n
The response from ESP8266:-
AT+CIPSTART=0,"TCP","192.168.1.103",80
0,CONNECT
OK
AT+CIPSEND=0,132
OK
>
Recv 132 bytes
SEND OK
+IPD,0,488:HTTP/1.1 302 Found
Date: Wed, 18 May 2022 17:00:17 GMT
Server: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5
X-Powered-By: PHP/8.1.5
Location: http://192.168.1.103/
Content-Length: 254
Content-Type: text/html; charset=UTF-8
<br />
<b>Warning</b>: Undefined array key "Col_1" in <b>
C:\xampp\htdocs\insert.php</b> on line <b>17</b><br />
<br />
<b>Warning</b>: Undefined array key "Col_2" in <b>
C:\xampp\htdocs\insert.php</b> on line <b>18</b><br />
record created successfully
0,CLOSED
Statistics: Posted by David-OLW — Thu May 19, 2022 2:56 am