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

Quote:
Originally Posted by NaS
View Post
Did you try replacing the space with "%20"? Note: In format you need to use 2 percent signs to get one into the actual string. Some webservers are unable to handle it.

Ignore if you tried other long strings without spaces.

Might also be a limitation of length.
The problem is then I could have to break down the string in sscanf or similar, but the string I'm trying to use I think is too long for the include version. Is there a way to explode a string like in PHP?

$pieces = explode(" ", "Max Speed: 45 MPH, Vehicle Health: 0.00, IP: 8.8.8.8, Ping: 394 ms");
echo $pieces[8];

Code:
fishtest - Max Speed: 45 MPH, Vehicle Health: 0.00, IP: 8.8.8.8, Ping: 394 ms
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)