httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Determining incoming request size
Date Wed, 24 Aug 2005 03:01:27 GMT
Tony VanScoy wrote:
> Is it possible to get the size of an incoming request? If so, how
> reliable is it? I was thinking of using Content-Length, but I thought
> I read somewhere that it's up to the browser to set that value.

Indeed it is.  You then read Content-Length bytes.  If there are more
bytes on the line, they're just line noise.

Of course, if you run HTTP/1.1 you may not get a Content-length header.
Apache will dechunk it for you, but you won't know the size in advance.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message