ESP8266 Developer Zone The Official ESP8266 Forum 2015-06-08T11:43:40+08:00 https://bbs.espressif.com:443/feed.php?f=61&t=560 2015-06-08T11:43:40+08:00 2015-06-08T11:43:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=560&p=2091#p2091 <![CDATA[A simple example of send HTTP packet by AT command]]> :!: :!:

How to send HTTP packet based on esp_iot_sdk http://bbs.espressif.com/viewtopic.php?f=21&t=232

How to send HTTP packet by AT command
1. AT+CWMODE=3 // set softAP+station mode

2. AT+CWJAP="SSID","password" // ESP8266 station connect to router

3. create a TCP connection and send HTTP packet which is marked in red, notice that the new line [(0x0d 0x0a) or (CR LF)] is needed.

Code:

GET / HTTP/1.1
User-Agent: curl/7.37.0
Host: cn.bing.com
Accept: */*


SEND_HTTP_TEST.png



4.HTTP result
SEND_HTTP_TEST_RESULT.png


Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Mon Jun 08, 2015 11:43 am


]]>