[HELP]HTTP_POST Request
#1

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

Код:
#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;
}
The file is currently empty.

What should I do?

Thank you very much
Reply


Messages In This Thread
[HELP]HTTP_POST Request - by SuperSimonetti®250 - 29.06.2015, 15:51
Respuesta: [HELP]HTTP_POST Request - by [DOG]irinel1996 - 29.06.2015, 16:14
Re: [HELP]HTTP_POST Request - by SuperSimonetti®250 - 29.06.2015, 17:07
Respuesta: [HELP]HTTP_POST Request - by [DOG]irinel1996 - 29.06.2015, 17:53
Re: [HELP]HTTP_POST Request - by SuperSimonetti®250 - 30.06.2015, 00:19
Re: [HELP]HTTP_POST Request - by Suicidal.Banana - 30.06.2015, 00:42
Re: [HELP]HTTP_POST Request - by SuperSimonetti®250 - 30.06.2015, 10:01
Re: [HELP]HTTP_POST Request - by Suicidal.Banana - 30.06.2015, 10:19
Re: [HELP]HTTP_POST Request - by SuperSimonetti®250 - 30.06.2015, 10:33
Re: [HELP]HTTP_POST Request - by Suicidal.Banana - 30.06.2015, 10:35

Forum Jump:


Users browsing this thread: 3 Guest(s)