Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 chanting in the Monastery: (8)
As of 2015-07-29 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls