05.02.2012, 10:25
Ok, I'll tell with more information...
Is it really to get response code for avaliable streaming over HTTP?
Example:
First radio doesn't work. Response code - 1. But in Winamp (and others media players) response code is 404.
Second radio works. But response code is 1 too.
If change HTTP_GET to HTTP_HEAD response code will be 1 too...
How to be
?
Is it really to get response code for avaliable streaming over HTTP?
Example:
PHP Code:
#include <a_samp>
#include <a_http>
forward Check(index, response_code, data[]);
public OnFilterScriptInit()
{
HTTP(-1,HTTP_GET,"http://ice.somafm.com/xmasinfrisko","","Check");
HTTP(-1,HTTP_GET,"http://78.159.104.167:80","","Check");
return 1;
}
public Check(index, response_code, data[]) return printf("Index - %d, response code - %d, data - %s",index,response_code,data);
Second radio works. But response code is 1 too.
If change HTTP_GET to HTTP_HEAD response code will be 1 too...
How to be
