Question:
Maximum HTTP request/ AJAX URL length?
Duaa Momani
2008-07-23 13:58:30 UTC
Hi,
It says, the maximum URL length in IE is 2,048 characters.
see:
http://www.boutell.com/newfaq/misc/urllength.html
or:
http://support.microsoft.com/kb/208427
/////////////////////////////////////////////////////////////////////////
I need to send an HTTP request that contains a very long text, how can I do that in IE?
It works fine in Firefox but not in IE. Anyone knows how?
Thanks
Four answers:
wilco
2008-07-23 14:14:15 UTC
Send the data as a POST request instead of a GET request, this will send the data to the server in a separate body, not in the url and the data will then not count towards the length of the URL - eg. if the data is coming from an html form set the method attribute of the form tag to POST, or if the request is send from javascript you should use a ajax javascript library that allows POST requests - like jx - http://www.openjs.com/scripts/jx/
?
2016-12-18 18:42:40 UTC
Url Max Length
marcom
2016-10-06 09:55:00 UTC
Max Url Length
anonymous
2008-07-23 14:23:21 UTC
The URL length limitation is only a problem if you're using the GET request mechanism, which encodes data in the URL. Set your AJAX request to use POST instead, and your data can be much larger (2 gigs or more, based on the server settings)



POST sends the data through environment variables, and there's no problem with URL length. The post mechanism is also slightly more secure than GET


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...