21.04.2015, 05:36
My request always returns code 6 (HTTP_ERROR_MALFORMED_RESPONSE), on GET or POST. Tried on www.******.com and works fine, retrieves data.
I'm using WAMP server 2.5, with PhpMyAdmin and Mysql, and everything works fine. I built my site in php and the database.
I'm using WAMP server 2.5, with PhpMyAdmin and Mysql, and everything works fine. I built my site in php and the database.
PHP код:
forward MyHttpResponse(index, response_code, data[]);
public MyHttpResponse(index, response_code, data[])
{
if(response_code == 200)
printf("Data: %s", data);
else
printf("offline, codigo: %d", response_code);
}
PHP код:
HTTP(0, HTTP_GET, "127.0.0.1/samp/teste.php", "", "MyHttpResponse");