Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2016-12-05 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (86 votes). Check out past polls.