29.06.2015, 15:51
Hey Guys
I'm having a problem with the HTTP() function.
I wanted to send some data in a file in another domain via a HTTP_POST request, but I'didnt managed to do it due to a HTTP_ERROR_MALFORMED_RESPONSE (6) response code.
This is what i made in Pawn
The file is currently empty.
What should I do?
Thank you very much
I'm having a problem with the HTTP() function.
I wanted to send some data in a file in another domain via a HTTP_POST request, but I'didnt managed to do it due to a HTTP_ERROR_MALFORMED_RESPONSE (6) response code.
This is what i made in Pawn
Код:
#include <a_http>
#include <a_samp>
forward Response(index,response_code,data[]);
public OnFilterScriptInit()
{
HTTP(1,HTTP_POST,"mydomain.altervista.org/GenericFile.txt","something","Response");
return 1;
}
public Response(index,response_code,data[])
{
printf("response %d",response_code);
return 1;
}
What should I do?
Thank you very much


but now I have again the response code 6, maybe it's wrong the way i formatted the request in pawn?
and now I learnt something new.