Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Chunked encoding permits HTTP keep-alive

by blssu (Pilgrim)
on Sep 12, 2002 at 21:13 UTC ( [id://197354]=note: print w/replies, xml ) Need Help??


in reply to Connection: Keep-Alive and Perl

Good article -- I've never done the packet trace, but the difference doesn't surprise me. It's not usually necessary to do everything in memory in order to calculate Content-Length. That's only needed for browsers that don't understand chunked encoding. Chunked encoding also allows headers to be listed at the end -- very similar to PostScript's "at end" headers.

mod_perl can transparently generate chunked encoding on recent versions of Apache. Doing chunked encoding from plain CGI would be more difficult, but the protocol is fairly simple.

For more info, see:

  • Comment on Chunked encoding permits HTTP keep-alive

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197354]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found