Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 http://www.cnn.com/ 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2019-04-25 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (125 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!