09.08.2011, 00:22
(
Last edited by dugi; 19/06/2013 at 03:15 PM.
)
That is GET data, so all you have to do is this:
Hope that simple example helps!
Note: That link you pasted wouldn't be passing all of the GET data you are intending, the first identifier is the ? symbol which is followed by the first GET variable and its value, to add additional ones, you need to use the & identifier.
pawn Code:
HTTP(playerid, HTTP_GET, "http://linuxthefish.net/mail.php?to=&subject=Hello&message=This", "", "MailResponse");
public MailResponse(index, response_code, data[])
{
SendClientMessage(index, 0xFFFFFF, "You sent the email");
printf("Response code: %d", response_code); // The response code is what the page responded with...200, 404, 500 etc.
printf("Page returned: %s", data); // data contains the information that was on the page
return 1;
}
Note: That link you pasted wouldn't be passing all of the GET data you are intending, the first identifier is the ? symbol which is followed by the first GET variable and its value, to add additional ones, you need to use the & identifier.