-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike,

On 11/30/2009 3:10 AM, Looijmans, Mike wrote:
> The RFC specs a maximum URL size of 4k. That should be enough for everybody.

...along with 640k of regular memory.

I'll let you read André's and Chuck's harangues about your dubious
recollection of the HTTP specification.

On a related note, Apache httpd (used by the OP, so definitely relevant,
here) has a configuration option for limiting the length of the
first-line of the request from a client:

http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline

The default limit in 2.0 and 2.2 is 8190 (an seemingly strange number
unless you account for the CR LF end-of-line marker required by the
specification (in section 2.2, since you asked). Presumably, httpd uses
fgets and the default buffer size of 8190 gives them a round-numbered
buffer size... though for no particular reason.

Since Apache httpd will choke after 8177 characters of URI (8190 - 13
required characters for "GET" and the HTTP version identifier), the OP
would be wise to change this setting in httpd.conf.

Or switch to POST, which is probably the right answer, here.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksUItcACgkQ9CaO5/Lv0PB6oQCfdpF6kZpqyrglITbfEisLK4cO
MDcAoJE5HOrvzVuQpTOFNGXHT40RiQt/
=PIjv
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to