13.11.2017, 19:12
Hi,
I'm trying to send a long string using the HTTP function, and it ends up sending nothing at all.
My code:
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.
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""
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");
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");
"[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""