Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A Perl module like LWP::UserAgent that gets just response headers, not body, avoiding HEAD request?

by rjt (Deacon)
on Dec 03, 2012 at 19:38 UTC ( #1006935=note: print w/ replies, xml ) Need Help??


in reply to A Perl module like LWP::UserAgent that gets just response headers, not body, avoiding HEAD request?

All conforming servers must respond to a HEAD request, so $ua->head($url, ...) is the correct call with a LWP::UserAgent object. A GET request will get the entire page.

What are you trying to do? What have you tried, and what happened (or didn't happen, but was supposed to) when you tried it? Please see How do I post a question effectively?.


Comment on Re: A Perl module like LWP::UserAgent that gets just response headers, not body, avoiding HEAD request?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-10-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls