SA-MP Forums Archive
Best method HTTP? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Best method HTTP? (/showthread.php?tid=294595)



Best method HTTP? - Norn - 02.11.2011

What's the best method of returning multiple items over http? Like json etc? I've no idea really, I use jquery and ajax on my sites but I've never went in depth returning multiple items before especially in PAWN.


Re: Best method HTTP? - Norn - 02.11.2011

Quote:
Originally Posted by ******
Посмотреть сообщение
There's no such thing as "multiple items" - HTTP returns a single big text string, not multiple things. How you want to format that text string and what data you want it to contain are entirely up to you. Essentially it's a web page (though it's only the header protocols, not HTML etc).
Of course, I was referring to a way to return multiple items from within a string and split and read them correctly in pawn.