connect internet but i have get nothing?
Posted:
Fri Oct 31, 2014 2:29 pm
by alonewolfx2
i am trying connect internet and send or get any data on website. i success for connecting my website but i have get nothing. anyone have idea?
i try with different versions like 090,091,092 and i have same problem
"
at+CIPMUX? +CIPMUX:1
OK
at+GMR 00160901
OK
at+CIFSR 192.168.2.171
at+CIPSTO? +CIPSTO:60
OK
at+CIPSTART=3,"TCP","mbozkurt.com",80
OK
Linked
at+CIPSEND=3,2 > \r
SEND OK
"
and i have get nothing
Re: connect internet but i have get nothing?
Posted:
Sat Nov 01, 2014 9:11 am
by villTech
maybe there is nothing to expect really.
i tried to connect to that server, and there is no reply when you send \r
Re: connect internet but i have get nothing?
Posted:
Sat Nov 01, 2014 9:42 am
by alonewolfx2
i try to send GET \r\n command with esp8266 and nothing again but i am getting error message from server when i connect with sockettest v 3.0 and send same message
sockettest v3 request and response
"
GET \r\n
<HTML>
<HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD>
<BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.
<P>
"
esp8266ex request and response nothing
"
[System Ready, Vendor:www.ai-thinker.com]
at+CIPMUX=1
OK
at+CIFSR 192.168.4.1
192.168.2.171
OK
at+CIPSTART=3,"TCP","mbozkurt.com",80
OK
Linked
at+CIPSTATUS STATUS:3
+CIPSTATUS:3,"TCP","94.73.150.110",80,0
OK
at+CIPSEND=3,8 > GET \r\n
SEND OK
"
Re: connect internet but i have get nothing?
Posted:
Sat Nov 01, 2014 12:29 pm
by Squonk
In order to send a GET request, you need much more than just "GET\r\n"...
Check
http://www.ntu.edu.sg/home/ehchua/progr ... asics.htmlThe bare minimum would be "GET / HTTP/1.1\r\n\r\n", i.e., you need to specify method (GET or PUT), the location on the server you are trying to access ("/"), the protocol ("HTTP") and version ("/1.1"), the empty line is to terminate the header part of the request.