Hello fellow monks,
I have been using LWP to pull information from the web. I am able to save files and dump the headers for the files being pulled, but I wanted to know if anyone can tell me how to dump raw headers rather than using the following:
$ua = LWP::UserAgent->new(keep_alive => 1,
timeout => 600);
$ua->protocols_allowed(
'ftp', 'http', 'https' );
$response = $ua->get($request);
$headers=$reponse->headers->as_string;
Basically, I just want to dump the headers to a file in all their glory. I want all parts, including non-strings, so this is why I was wondering if there is another way it can be done.
Thanks in advance for any advice.