Alex Menendez wrote:
> is there any limit to the size of a GET request url when it is generated
> from inside a mod_perl module? I have a POST cgi coming in with a bunch of
> data and I would like to turn it into a GET url so I can effectively use
> lookup_uri and run from the Apache::SubRequest class.
The W3C sorta leaves this up to the server. Here's an excerpt from the
HTTP/1.1 spec <ftp://ftp.isi.edu/in-notes/rfc2616.txt>:
----
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).
Note: Servers ought to be cautious about depending on URI lengths
above 255 bytes, because some older client or proxy
implementations might not properly support these lengths.
----
So, the answer is, "it depends."
Try yours with a 100K URI and see if it barfs.
> I know GET urls have a size limit when they are initiated from a regular
> web client. Just wondering if the same is true when initiated from the
> server itself as a subrequest.
Nope, the clients may impose a size limit.
--
Devin Ben-Hur | President / CTO | mailto:[EMAIL PROTECTED]
The eMarket Group | eMerchandise.com | http://www.eMerchandise.com
503/944-5044 x228 |
"Put 30 kids in a room with an easel, a computer, and a guitar.
You'll get one Van Gogh, one Von Neumann, and one Van Halen.
And 27 burger flippers." -- Damian Conway