Maximum HTTP URL length

Source: Internet
Author: User

The HTTP RFC2616 protocol does not specify the maximum length of the URL, but requires the server to return a 414 status code (Request-uri Too long) If it cannot process a URL that is too long.

The HTTP RFC2616 protocol states that some old clients or proxies may not be able to handle URIs with more than 255 bytes.

Since the HTTP protocol does not specify the maximum length of the URL, the maximum length of the URL is related to the user's browser, as well as the maximum length URL that the server can handle.

Site Map Protocol (sitemap Protocol), limit the length of the URL is 2048, if you want to allow search engines to search you, 2048 is the maximum limit.

Google can crawl and index 2047 bytes of the URL, but the user clicks will return 414, after testing, Google's SERP connection, the maximum can not exceed 1855 characters, more than this number, the user clicks return 414.

The maximum URL length for a IE8 URL is 2,083 bytes, where the path portion (path) has a maximum length of 2048 bytes. IE9 also has a similar limit, and IE10 accepts only 2,083 bytes. Although clicking on the URL is longer than the length of the connection, the Address bar displays only the first 2,083 bytes.

A netizen tested the maximum URL length supported by a browser and server, as shown in the following table:

Ie

The maximum URL limit is 2,083 bytes, and the path length is 2048 bytes (GET request).

Firefox

65536

Safari

More than 80000

Opera

More than 190000 bytes

Chrome

8182 bytes

Apache Server

8192 bytes

Iis

16384 bytes

Perl HTTP::D Aemon

At least 8000 bytes


Here's an interesting test:

http://www.seomofo.com/experiments/ Title-and-h1-of-this-post-but-for-the-sake-of-keyword-prominence-stuffing-im-going-to-mention-it-again-using-various-syno Nyms-stemmed-variations-and-of-coursea-big-fat-prominent-font-size-heres-the-stumper-that-stumped-me-what-is-the-max-numb Er-of-chars-in-a-url-that-google-is-willing-to-crawl-and-index-for-whatever-reason-i-thought-i-had-read-somewhere-that-go Ogles-limit-on-urls-was-255-characters-but-that-turned-out-to-be-wrong-so-maybe-i-just-made-that-number-up-the-best-answe R-i-could-find-was-this-quote-from-googles-webmaster-trends-analyst-john-mueller-we-can-certainly-crawl-and-index-urls-ov Er-1000-characters-long-but-that-doesnt-mean-that-its-a-good-practice-the-setup-for-this-experiment-is-going-to-be-pretty -simple-im-going-to-edit-the-permalink-of-this-post-to-be-really-really-long-then-im-going-to-see-if-google-indexes-it-i- Might-even-see-if-yahoo-and-bing-index-iteven-though-no-one-really-cares-what-those-assholes-are-doing-url-character-lImits-unrelated-to-google-the-question-now-is-how-many-characters-should-i-make-the-url-of-this-post-there-are-a-couple-o f-sources-ill-reference-to-help-me-make-this-decision-the-first-is-this-quote-from-the-microsoft-support-pages-microsoft- Internet-explorer-has-a-maximum-uniform-resource-locator-url-length-of-2083-characters-internet-explorer-also-has-a-maxim Um-path-length-of-2048-characters-this-limit-applies-to-both-post-request-and-get-request-urls-the-second-source-ill-cite -is-the-http-11-protocol-which-says-the-http-protocol-does-not-place-any-a-priori-limit-on-the-length-of-a-uri-servers-mu St-be-able-to-handle-the-uri-of-any-resource-they-serve-and-should-be-able-to-handle-uris-of-unbounded-length-if-they-pro Vide-get-based-forms-that-could-generate-such-uris-a-server-should-return-414-request-uri-too-long-status-if-a-uri-is-lon Ger.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.