[HELP]HTTP_POST Request
#8

Yea, your "something" is all wrong, try something like the below (just using name and vehicleid as an example, change this to handle bug text instead, the key here is the myPostString bit and the format function call)

Код:
new myPostString[128],
       name[32],
       vehicleId;

GetPlayerName(playerid, name, 32);
vehicleId = GetPlayerVehicleID(playerid);

format(myPostString, sizeof(myPostString), "name=%s&vehicle_id=%s", name, vehicleId);

HTTP(1, HTTP_POST, "mydomain.altervista.org/GenericFile.php", myPostString, "Response");
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: 2 Guest(s)