failed HTTP request
Posted: Sun May 29, 2016 1:54 pm
Hi all!
i'm italian so sorry for my bad english T.T
I need help about a HTTP request to a my website that not responding.
The commands that run on the module are these:
But not send or receive data...
the .php page that should receive the data is this:
the website is hosted to altervista that is a free hosting
Any Idea?
thanks in advice! ^^
i'm italian so sorry for my bad english T.T
I need help about a HTTP request to a my website that not responding.
The commands that run on the module are these:
Code: Select all
AT+RST ' reset module
RESPONSE:
OK
cþcÏRSWâjÓjÊWfg{[úâêê
[Vendor:www.ai-thinker.com Version:0.9.2.4]
ready
AT+CWJAP="XXXX","XXXXXXX" 'connect to wifi
RESPONSE:
OK
AT+CIPMUX=0 'single connection
RESPONSE:
OK
AT+CIFSR 'return l'IP
RESPONSE:
192.168.43.184
OK
AT+CIPSTART="TCP","www.bloggersite.altervista.org",80 ' connection
RESPONSE:
OK
Linked
AT+CIPSEND=77 'length to send
RESPONSE:
>
GET /prova.php?valore=ciao HTTP/1.0\r\nHost: www.bloggersite.altervista.org\r\n\r\n ' data to send
RESPONSE:
SEND OK
But not send or receive data...
the .php page that should receive the data is this:
Code: Select all
<?php
$valore = $_GET['valore'];
$f = fopen("a.html", "a");
fwrite ($f,$valore);
fclose($f);
echo $valore;
?>
the website is hosted to altervista that is a free hosting
Any Idea?
thanks in advice! ^^