receive data problem from HTTP
whould you help me in this regards.
Successfully sent data in server but data which i sent from server that could not receive in client side.
in debug mode
bytesSent = 21
bytesReceived = 21
response =
responseStstus=-1
but i'm not able to extract the data.
var that = this;
var http = new HttpConnection(that.httpAddress) ;
$.writeln("AsyncHTTP: create connection...");
http.requestencoding="utf8";
http.request = "yourname=Mahedi Hasan" ;
http.method = "POST";
http.async = true ; // or http.sync = false ;
http.responseencoding ="utf8";
http.bytesSent;
http.bytesReceived;
http.response;
var status = http.execute() ; // returns immediately
php code:
$value = file_get_contents("php://input");
$file = 'people.txt';
file_put_contents($file, $value); //write data which i sent from client side
echo $value;