Click here to Skip to main content
15,306,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
maximum length url in web?

eliminate space in web?

1 solution

Is Google [^]broken at your place?
It gave me About 169,000,000 results in 0.48 seconds.

Short answer - de facto limit of 2000 characters

If you keep URLs under 2000 characters, they'll work in virtually any combination of client and server software.

Longer answer - first, the standards...

RFC 2616[^] (Hypertext Transfer Protocol HTTP/1.1) section 3.2.1 says

The HTTP protocol does not place any a priori limit on the length of
a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15).
Prasad_Kulkarni 14-Jun-12 8:03am
Good answer +5!
Manas Bhardwaj 14-Jun-12 8:47am
Espen Harlinn 14-Jun-12 17:13pm
Nice answer, 5'ed!
Manas Bhardwaj 15-Jun-12 3:27am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900