Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL Length limitation of Microsoft Edge

does anybody know URL length limitation for Microsoft Edge? As you know, Internet Explorer has limitation for URL length, Maximum length is 2048. How about Edge? I guess, it should be gone for now...

like image 670
yoshi0309 Avatar asked Aug 28 '15 09:08

yoshi0309


People also ask

Is there a limit to URL length?

The official documentation specifies a maximum length of 2048 characters for the <loc> element, which is used to submit URLs: URL of the page. This URL must begin with the protocol (e.g. “http”) and end with a trailing slash if required by the web server. This value must not exceed 2,048 characters.

Is there a URL length limit in Chrome?

Chrome limits URLs to a maximum length of 2MB for practical reasons and to avoid causing denial-of-service problems in inter-process communication. On most platforms, Chrome's omnibox limits URL display to 32kB ( kMaxURLDisplayChars ) although a 1kB limit is used on VR platforms.

What is maximum URL segments?

The default value is 4294967295 . Optional uint attribute. Specifies the maximum number of segments permitted in a URL. The default value is 32 .


2 Answers

The limit appears to be around 81578 characters. After that, I get a silent failure with no request made to the server.

The URL I was using to test looked like:

http://xx.xx.xxx.xxx:xxxx/?81578-characters-here

I'm not sure whether the length of the host name is factored in.

It's also worth noting that the limitation here was supposedly a problem with Windows itself rather than the browser (sorry, no reference). It appears the issue was addressed in Windows 10, so running this same test on IE11/Windows 10 yields a similar result.

like image 118
Paul Go Avatar answered Oct 22 '22 13:10

Paul Go


It looks like this is the only place that talks about the url limitation of MS Edge. I couldn't find any official information about this. Anyway, I had to validate this myself and turned out that the limit of the query string is in fact 4035 characters on MS Edge (v40.15063.674.0 is what I used). Here's a simple (and stupid) default.htm I used for a quick testing.

<!DOCTYPE html>
<html lang="en">
    <head>
        <script>
            alert(window.location.search.length);
            var url = "http://localhost/default.htm?10000-characters-here";
            window.open(url);
        </script>
    </head>
    <body>
    </body>
</html>
like image 26
Jerry Han Avatar answered Oct 22 '22 13:10

Jerry Han