Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: Document Size

by echo (Pilgrim)
on Oct 05, 2001 at 12:19 UTC ( #116938=note: print w/replies, xml ) Need Help??

in reply to Re: Document Size
in thread Document Size

Beware that the Content-Length header is optional though, and many dynamic documents will not output it. Also, some servers tend to do different things with it depending on the request method:

% HEAD 200 OK Cache-Control: private,max-age=60 Connection: close Date: Fri, 05 Oct 2001 08:14:42 GMT Server: Netscape-Enterprise/4.1 Content-Length: 0

Then there is the case of servers which will not handle HEAD requests. In the end the only guaranteed way is to use GET and length().

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-01-20 12:15 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (56 votes). Check out past polls.