SA-MP Native HTTP limits
#1

Hi
I just started experimenting a bit with samps HTTP function. But i noticed a few problems (using windows, dont know if it works on linux), that make it hard for me, to do what i want to do.

1. Some urls crash the server (for example "www.sa-mp.com") My firewall shows the connection attempt with the correct ip, so it is resolved correctly. But less than a second after i allow the connection, the server crashes. (This is just a minor problem for me, but it might be useful for others to know why the server crashes)

2. The response data seems to have a internal size limit. I need to read quite big pages with at least 2000-3000 bytes, but the size of data[] in the response callback never goes over 1100 bytes. It depends on the page, how much is loaded exactly, some pages load 1040 bytes, and other 1080, but the same page always loads the same amount of bytes. The response code is 200 (page loaded successful), so it does not return HTTP_ERROR_CONTENT_TOO_BIG, it just stops reading somewhere in the html code. (This is my major problem, i need to load those pages)


Maybe someone who also worked with the HTTP stuff knows something about one of the problems?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)