HTTP Response Issue
#1

I'm trying to load data using HTTP but it's not working, it doesn't even print outside of any if statements:

pawn Код:
HTTP(0, HTTP_GET, "urlremoved", "", "serverResponse");
pawn Код:
public serverResponse(index, response_code, data[])
{
    printf("%d", response_code);
    new buffer[500][10028];
    if(response_code == 200)
    {
        split(data, buffer, '\n');
        printf("The URL replied: %s", buffer[0]);
    }
    else
    {
        printf("The request failed! The response code was: %d", response_code);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)