ESP8266 get request syntax help
Posted: Mon Oct 05, 2015 12:21 pm
Hi to all ,i am trying to work the esp to send the data to website ,so far i am successful in
1.Sensding data to ThingSPeak ,by making channel ,its really working
2.
reply received by ESP as
3.Now main point actually i have a local wamp up and running on my Notebook ,in which i have a receiver.php file ,through which i am trying to put data in a text file,first i have tried to put data though a mobile phone browser and it worked ,but when i try to do the same with ESP ,its result in 408 bad request or no reply ,
please guide me where i am wrong for this below get command ,since i get no reply for this.
AT+CIPSEND=74\r\n
GET /receiver.php?apples=12&oranges=31 HTTP/1.1\r\nHost: 192.168.8.101\r\n\r\n
while i have checked this in broswer
http://192.168.8.102/receiver.php?apples=12&oranges=31
its ok and always a success
1.Sensding data to ThingSPeak ,by making channel ,its really working
2.
Code: Select all
AT+CIPSTART="TCP","coolparis.azundo.com",80\r\n
AT+CIPSEND=49\r\n
GET http://coolparis.azundo.com/ HTTP/1.0\r\n\r\n\r\n
reply received by ESP as
+IPD,420:HTTP/1.1 200 OK
Server: nginx/1.0.12
Date: Mon, 05 Oct 2015 16:03:10 GMT
Content-Type: text/html; charset=utf-8
Connection: cCtsl*nC sl OeAsterq,--t
CLOSED
3.Now main point actually i have a local wamp up and running on my Notebook ,in which i have a receiver.php file ,through which i am trying to put data in a text file,first i have tried to put data though a mobile phone browser and it worked ,but when i try to do the same with ESP ,its result in 408 bad request or no reply ,
Importantly up till now success with wamp is
Code: Select all
AT+CIPSTART="TCP","192.168.8.102",80
busy p...
CONNECT
OK
+CIPSEND=42
busy p...
OK
GET http://192.168.8.102/ HTTP/1.0
SEND OK
+IPD,198:HTTP/1.1 200 OK
Date: Mon, 05 Oct 2015 16:06:08 GMT
Server: Apache/2.4.9 (Win64) PHP/5.5.12
X-Powered-By: PHP/5.5.12
t
:teHCLOSED
please guide me where i am wrong for this below get command ,since i get no reply for this.
AT+CIPSEND=74\r\n
GET /receiver.php?apples=12&oranges=31 HTTP/1.1\r\nHost: 192.168.8.101\r\n\r\n
while i have checked this in broswer
http://192.168.8.102/receiver.php?apples=12&oranges=31
its ok and always a success