in reply to Re^4: Can't call method "extract_cookies" on an undefined value
in thread Can't call method "extract_cookies" on an undefined value

What am I doing wrong?

You're being confused!

You're stuck on a cookie jar, stop that :)

If you want to add a header to a request, do that directly , use $ua->get( $url, Cookie => 'FOO=BAR' ) REQUEST-METHODS of LWP::UserAgent, HTTP::Request::Common, HTTP::Request, HTTP::Headers

  • Comment on Re^5: Can't call method "extract_cookies" on an undefined value