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