HTTP function broken? Can't send long strings!
#1

Hi,

I'm trying to send a long string using the HTTP function, and it ends up sending nothing at all.

My code:

pawn Code:
new result[1024];
format(result, 1024, "website.com/linuxthefish.php?string=%s", "878248638726478362877bewnh fdhejiwdheiudwuiheuhduihewudheuiwhduiewhduiehwiudheuwh");
HTTP(2, HTTP_GET, result, "", "MyHttpResponse");
What I get in the access log on the webserver is "[13/Nov/2017:19:37:24 +0000] "" 400 349 "-" "-""

With this different code but with a shorter string, it works.

pawn Code:
new result[128];
format(result, 128, "website.com/linuxthefish.php?data=%s", "8.8.8.8");
HTTP(1, HTTP_GET, result, "", "MyHttpResponse");
And I get this in the access logs.

"[13/Nov/2017:18:17:04 +0000] "GET /linuxthefish.php?data=8.8.8.8 HTTP/1.0" 200 0 "http://sa-mp.com" "SAMP/0.3""
Reply


Messages In This Thread
HTTP function broken? Can't send long strings! - by linuxthefish - 13.11.2017, 19:12
Re: HTTP function broken? Can't send long strings! - by linuxthefish - 13.11.2017, 19:14
Re: HTTP function broken? Can't send long strings! - by NaS - 13.11.2017, 19:33
Re: HTTP function broken? Can't send long strings! - by linuxthefish - 13.11.2017, 19:58
Re: HTTP function broken? Can't send long strings! - by NaS - 13.11.2017, 20:02
Re: HTTP function broken? Can't send long strings! - by linuxthefish - 13.11.2017, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)