Chat freely about anything...

User avatar
By toffie
#5844 Oh thanks for testing martinayotte! I really appreciate it you know :)

That is great news, but do you know exactly how the CIPSEND value was and the exact GET line you sent in the python script? I would really love to see that if you don't mind :) Also, if you do it "wrong", do you get locked out from my server for a while as well?
User avatar
By martinayotte
#5855 My python script was taking care of the length measurement of the GET statement.
I won't show my dirty script, but here are some hints :
Code: Select allget_str = "GET /esp.php?value1=77 HTTP/1.1\r\nHost: www.swemod.com\r\n\r\n"
serial.write("AT+CIPSEND=%d\r\n" % len(get_str))
waitFor(">")
serial.write(get_str)

Printing the length gave me 57. If the URL may varying in length, it is important that CIPSEND match with it.
(BTW, you can see that I put back the \r\n but without space after it)
User avatar
By villTech
#5859 martinayotte's http request is now working. tested with telnet and got response from server same with what he posted. it should work ok now also with the module.

btw, from below response, your terminal doesn't seem to recognize "\r\n" as CR LF
AT+CIPSTART="TCP","WWW.SWEMOD.COM",80
OK
Linked

AT+CIPSEND=46
> GET http://www.swemod.com/esp.php?value1=1\r\n

busy s...
SEND OK
your terminal send "\r\n" as a literal "\r\n", making your string length = 50 (+2 CR LF), that is why you got "busy s.." from the module.
with AT_2.0 fw, it will reply you with "too long", and not "busy s.."
User avatar
By Athena
#5935 I set ESP8266 to transparent transmission mode, then send
"
GET / HTTP/1.1
User-Agent: curl/7.37.0
Host: http://www.swemod.com
Accept: */*

"
to your server , and get response as below... I think I just don't find out the correct instruction to your server ...
Attachments
Special_Server.png