Thanks for your replies!
Lawrence_jeff wrote:You can test your get from another system by telneting to port 80 on your server and entering the same get command, if it locks up your server you at least can rule out the module.
I've actually tried that yesterday and as soon as I telnet into the server on port 80, it locks up my connection. Is this good or bad? Is it like it should be or?
kenn wrote:I found that I needed to use a better request header, with a known user-agent, before many servers would give me the expected page.
Here's the request header I've been using in a python test program:Code: Select allGET [[path]] HTTP/1.1
Host: [[domain]]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Pragma: no-cache
Cache-Control: no-cache
That's nice, I don't want to complain but.. Why would I or you or anyone at all have to use that, when so many others on Youtube show that you dont have to have that much header? That is just unbelievable, we shouldn't need that much. Or are the servers everyone test so much "nicer", more "kind" to bad requests? No idea, but why should we suffer?
Athena wrote:I was shoked by your title。。。
Why?
villTech
That is amazing, cause I can't even get that 404 page. Also, WHY did you get a 404 page? That's insane.. The file is there, so why would you get a 404!?!?
Well, I tried the last part of your code;
AT+CIPSTART="TCP","WWW.SWEMOD.COM",80
AT+CIPSEND=46
GET http://www.swemod.com/esp.php?value1=1
And I get "OK" back.. that's it.. I dont get any errors, I dont get any response and the database doesn't update. BUT! The server does not block my connection, which of course is good. But why doesn't it work?
Also, if you count the last line, that is only 42 characters long, but you set it to 46.. Why do you do that?
I can see all the connections made to the page, there is all sorts of user agents, mostly iPad, but also Firefox, iPhone, Chrome and Linux Android. So what I can see, no one has accessed my page with an ESP8266..
Except 1 IP address, which ends in x.x.x.179. The user agent for that IP is blank.. Which could indicate that it is the ESP8266 which doesn't leave any trace when contacting my webserver. villTech, is that your IP address perhaps? I really hope so anyway If not, the ESP8266 must emulate some other user agent, but when I don't know for sure who has used an ESP8266 to contact the server, I don't know which user agent that might be.
I'm not trying to do something wrong or anything by logging the user agent for the access of esp.php, it is only to see what user agent the ESP8266 might have, if any. So don't be scared because of that, I'm only trying to get my ESP8266 to work and I need your help
Finally, I thought I would update my ESP8266 module to the at_2.0 firmware, but I'm out of luck. The flasher that I think should be used, is it this one?
If that is the flasher, which of these files should go where?
blank.bin
boot_v1.1.bin
esp_init_data_default.bin
user1.bin
user1.dump
user1.S
user2.bin
user2.dump
user2.S
Or should I upload some other firmware? Is there any firmware with just 1 binary file?
I hope you guys know
Thanks for all your support! Hopefully someone else might benefit from this thread with all my problems as well
the request "GET http://www.swemod.com/esp.php?value1=1" is 42. but it has 2x (CR LF) in the end making the request 46.
Pls. try again with CR LF CR LF. if you missed out the 2x CRLF, you will not get response from the server.
that could also be the reason why there is no response even with your telnet.
my ip is 220.xxx.xxx.179.
no issue also when i test with 2 tcp client apps.
toffie wrote:GET /esp.php?value1=3\r\n HTTP/1.1\r\nHost: http://www.swemod.com\r\n\r\n
Why did you added \r\n at the end of URL ?
The protocal need "GET <path> HTTP/1.1\r\n" on a single line, not the HTTP on a second line.
Try this instead :
GET /esp.php?value1=3 HTTP/1.1 Host: www.swemod.com\r\n\r\n