HTTP_POST help
#2

i know how u feel ^^ when i tryed to do something with http, i also went to the wiki :P
there's only this: https://sampwiki.blast.hk/wiki/HTTP but that's not enough, cuz there#s so much more u can do with http than just reading from text files.

for example, some months ago when i was playin' around a lil bit with it, i created something like a "log-file"

Код:
new PNx[MAX_PLAYER_NAME];
	new Sx[140];
	new IPx[16];
	new h,minute,sec,day,year,month;
    gettime(h,minute,sec);
	getdate(year,month,day);
	GetPlayerName(playerid,PNx,MAX_PLAYER_NAME);
	GetPlayerIp(playerid,IPx,sizeof(IPx));
	format(Sx,sizeof(Sx),"eastcrips.square7.ch/test.php?filename=testtext.txt&input=[%d.%d.%d|%d:%d:%d]++<Incomming>+Player:%s+|+IP:%s",,day,month,year,h,minute,sec,PNx,IPx);
    HTTP(0, HTTP_POST, Sx, "", "");
it sends a post data to a php file on my ftp.
maybe this helped you somehow
and "+" means " " (space)

btw. u can change the User Agent of ur samp server opening the server file with a hex editor and editing the specific lines :P

if u want, i can also show you the php file (if i still have it ^^)
Reply


Messages In This Thread
HTTP_POST help - by RajatPawar - 04.08.2013, 09:06
Re: HTTP_POST help - by CutX - 04.08.2013, 09:51
Re: HTTP_POST help - by RajatPawar - 04.08.2013, 10:27
Re: HTTP_POST help - by CutX - 04.08.2013, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)