HTTP request
#3

Ok, I'll tell with more information...
Is it really to get response code for avaliable streaming over HTTP?
Example:
PHP Code:
#include <a_samp>
#include <a_http>
forward Check(indexresponse_codedata[]);
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(indexresponse_codedata[]) return printf("Index - %d, response code - %d, data - %s",index,response_code,data); 
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?
Reply


Messages In This Thread
HTTP request - by SDraw - 05.02.2012, 06:54
Re: HTTP request - by T0pAz - 05.02.2012, 07:09
Re: HTTP request - by SDraw - 05.02.2012, 10:25

Forum Jump:


Users browsing this thread: 2 Guest(s)