-->
Page 1 of 2

[SOLVED] ESP8266 - GET method ans shared hosting provider

PostPosted: Tue Mar 03, 2015 5:49 pm
by Hexor
Hi all,

I have a little problem that I can't resolve....

I have an esp01, with AT firmware, I can use a "get" (http) method to put data in database:
- in local (WAMP) no problem
- on thingspeak : no problem
But with a shared hosting provider (ovh.com): it's not working !

Have you an idea of the GET request that I must send to the esp8266 for working fine ?
I have read that the host section is used in shared hosting for redirect the request to the good server, but it don't work for me ... :(

IE:
GET /page.php?field1=xxx
--> Work on local and thingspeak, but not on ovh

GET /page.php?field1=xxx HTTP/1.1
Host: myhost.com
--> Same as above :|

Have you a solution ?
Thanks ! ;)

Re: ESP8266 - GET method ans shared hosting provider

PostPosted: Wed Mar 04, 2015 12:16 pm
by Hexor
Problem solved !

For the test I enter manualy the AT commands (with "tera term" under windows 7) and the problem is here !
I don't know why but if is the arduino wich send the get request: all is working !

The request:
GET /myfile.php?&field1=xxx HTTP/1.1\r\nHost: myhost.com\r\nConnection: close\r\n\r\n

;)

Re: [SOLVED] ESP8266 - GET method ans shared hosting provide

PostPosted: Tue Jan 26, 2016 6:01 pm
by anuprit
Hey Hexor! Can you please tell me how you sent data to a local server from esp.I am sending data to wampserver on my own pc but my data base is not updating.The commands i use are-
AT+CIPSTART=...
AT+CIPSEND=.....
>GET REQUEST....
In reply i get - SEND OK
but my databse is not updated

Re: [SOLVED] ESP8266 - GET method ans shared hosting provide

PostPosted: Wed Jan 27, 2016 2:29 am
by Hexor
Hi,

I think the problem is not on the ESP's side but on Wampser.

Can you post here the get request send by the esp please ?
Can you also post the file of wampserver which put info in database ? (delete password and other confidential information)