On 5/30/06, vladas <[EMAIL PROTECTED]> wrote:
I am concerned for the cases where URL given by the cliend side is like 2MB.

In my understanding, there is a gap between the server opening a socket
for the connection and starting reading in the data from the client until
the end of that readining-in when server stores the info about the request
in the env variables.  So if URL is very big, it would be first transfered to
the httpd cache and httpd would determine the CONTENT_LENGTH and
would store that info in the env of the httpd, right?

The CGI's env. variable CONTENT_LENGTH is set from the
client's header (see /usr/src/usr.sbin/httpd/src/main/util_script.c:

       else if (!strcasecmp(hdrs[i].key, "Content-length")) {
           ap_table_addn(e, "CONTENT_LENGTH", hdrs[i].val);
       }
)

Reply via email to