SA-MP Forums Archive
fwrite/http callback data - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fwrite/http callback data (/showthread.php?tid=241703)



fwrite/http callback data - legodude - 18.03.2011

does the HTTP callback have a limit on the data[]?
because i download a file with it and it just cuts off at 2kb (at leats the windows explorer says its 2 kb.)
its a plain text file (a .txt) and it just stops at some moment.
please help.

or does fwrite has some sort of limitation on writing?


Re: fwrite/http callback data - Calgon - 18.03.2011

IIRC data[] from HTTP only accepts 2048 characters.


Re: fwrite/http callback data - legodude - 18.03.2011

mmm. that kinda sucks for my plans.
got any suggestions to download full files?


Re: fwrite/http callback data - legodude - 18.03.2011

ehhh?
i don't understand that.
and if i understand you right. it would not work properly with lots of checks.
because it will have a \r\n on the end of the file and a EOF sign too. won't it include that too in the file pasted together?