Thanks for the reply!
GET /esp.php?value1=3 HTTP/1.1\r\nHost: www.swemod.com\r\n\r\n
That code locks up my server I'm afraid..
villTech
Thanks for your reply and thanks for trying to help me! I'm really lost around all this
When I connect with Telnet to the server and write everything like you do, then it works. Really strange, when I tried Telnet the other days the connection got locked up straight away when I connected to the server. So that works today, heh strange
Great, now I know your IP address, so I can really see that it has worked. Thanks for that!
I tried with the following sequence;
AT+CIPSTART="TCP","WWW.SWEMOD.COM",80
AT+CIPSEND=46
GET http://www.swemod.com/esp.php?value1=1\r\n
I only included one set of \r\n as my terminal already send one set of \r\n, which makes it two.
That doesn't lock the server, but I dont get any response and no update in the database. Here's the log;
AT
OK
AT+GMR
0018000902-AI03
OK
AT+CIFSR
192.168.1.228
OK
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
OK
Unlink
If I instead try the following sequence;
AT+CIPSTART="TCP","WWW.SWEMOD.COM",80
AT+CIPSEND=46
GET http://www.swemod.com/esp.php?value1=1
And just press "Send" twice after the last line, which means my terminal window send two sets of \r\n .. then my server gets locked up and I dont get any response.
If I disable CR LF in my terminal window and just try and send \r\n myself, that doesn't work at all. The module doesn't understand that.
SCREW THIS!
I got it to work... I think I might have sent one CR LF too much and that locked up my connection.. But if I send exactly 2 CR LF as you say, then it works with the following sequence;
AT+CIPSTART="TCP","WWW.SWEMOD.COM",80
AT+CIPSEND=46
GET http://www.swemod.com/esp.php?value1=8
And then after that I press SEND twice after to send two sets of \r\n / CR LF
Now it works perfectly fine.. I dont understand.. I've kept a personal log for all the tried I've done to see if I've done something in the past for the ESP8266 and I've almost done this before, but not exactly apparently.. But now it works.. I can update the database through the page via the ESP8266 module.. It's AMAZING!!
But don't worry I will certainly come back with other errors or questions soon, apart from all the problems I love these modules.. AND I really appreciate all your help both villTech but also all you others who have given your time to test and try and help me out. I really appreciate it!
THANK YOU!