Trying the same thing on a hosted server, I get the same results.
So I don't think it's anything wrong with my local server.
I found a YouTube video where the guy explains the steps to send data to a server.
He receives the data and appends it to a text file.
I plan to do something a bit different, but first I need to get the server to receive the data.
When I power up the ESP8266, it remembers the SSID and password for my router.
So, after some garbage characters, I get...
Ai-Thinker Technology Co. Ltd.
ready
WIFI CONNECTED
WIFI GOT IP
Here's the version of the ESP8266:
AT+GMR
AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
Ai-Thinker Technology Co. Ltd.
Jun 13 2016 11:29:20
OK
So, I connect to the server:
AT+CIPSTART="TCP","192.168.1.123",80
(if I include the \r\n at the end I get ERROR)
CONNECT
OK
AT+CIPSEND=71 (omitting \r\n again so not to get ERROR)
OK
GET /receiver.php?apples=3&oranges=7 HTTP/1.1\r\nHost: 192.168.1.123\r\n\r\n
If I understand correctly, this should count as 71 bytes
But if you tell it to send 71 bytes, it echos the last 5 back
(This would seem to indicate that I'm not sending CR&LF, but the individual characters)(\ and r and n)
(I suspect this is the root of my problem, but don't know what to do)
> n\r\n
busy s...
Recv 71 bytes
SEND OK
I can tell it to send 76 and it doesn't echo the last characters back but the results are the same.
I edited the receiver.php script to make a log file entry every time it is run.
No entry is made when I try sending through the ESP8266.
If I send the data from a browser, the script runs.
Someone please tell me what I'm missing