08.08.2011, 23:12
Hello, I have be wanting to use the HTTP function which was released with 0.3b but I have no idea what I can do with it, so could someone elaborate please?
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;
}
This is probably a lot to ask but how would I use the HTTP_POST function to post in a SMF forum?
|