PDA

View Full Version : http haders limit


emihaly
04-07-2003, 10:00 AM
i have http proxy and i need know http headers for clients limit. My default was 4 kb, most of headers have < 1kb. squid cache have 10 klb limit, but i increase my buffer for 60 kb limit. But in real lifie is header unlimited or have some limits? I hear, POST have 4 kb limit. Is it true?

Also can header hold unsigned chars? I alway use chars.

Uzume
04-09-2003, 09:25 AM
I believe HTTP places no limits on the header size.

mlampkin
04-11-2003, 01:25 AM
I do not remember any explicit limits being defined anywhere in the primary HTTP standards (I just 2x checked rfc 2616 and didnn't see any) but the 4 k buffer seems to handle just about everything (didn't we have that conversation before? ;-)

As for unsigned data... header values cannot be binary data... so the only way to include such would be to escape it (base 64 or something similar) first...

Michael

emihaly
04-11-2003, 10:53 AM
yes but when post give 5 MB of data, header will have 5 MB ?????

mlampkin
04-11-2003, 11:18 PM
Post is from client to server... so if you are working on a server implementation you will have to parse the post data... but the data is part of the request body... not the header... so you will still be able to parse the request header with the 4k buffer...

As for parsing post requests (on the server side)... personally, even though there is no limit set for the data size of a post request, 5 megs is a bit much... and would return a 413 error code (entity too big)...

Thats just me though ;-)

Michael