Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 pondering the Monastery: (7)
As of 2016-06-28 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (364 votes). Check out past polls.