West Wind Internet and Client Tools
HttpGet url string length limitation
Hi,
Is there a way to get HttpGet to accept a url longer than 255 characters? I am currently able to send a url that is 240 characters long but once I exceed 255 it gives an error.
Thanks, Mike
The limit most likely comes from the receiving Web server not from the client.
I just tried this:
lcsend = UrlEncode(REPLICATE("Wind makes the world go around",15))
? LEN(lcSEND) && 600
loHttp = CREATEOBJECT("wwHttp")
? loHttp.HttpGet("https://localhost/wconnect/TestPage.wwd?Name=Rick&Company=" + lcSend)
and that works just fine. So it's the server that's rejecting the long query string.
If you are sending data you should really be using POST to send the data, not cram it into a URL. Query string values are meant for identifying requests - IDs basically - not to send extensive data.
+++ Rick ---