HTTP Headers
David Tsai (davidt@web-consult.com)
Mon, 05 Jan 1998 22:16:21 -0800
I have been trying to find out how to get the HTTP headers of files and
I just can't find any documentation on it. This is the code I have
right now..
$url = "http://www.web-consult.com/";
use LWP::UserAgent;
use URI::URL;
$ua = new LWP::UserAgent;
$ua->agent("TestBot/0.4");
$ua->env_proxy;
$request = new HTTP::Request('GET',$url);
$response = $ua->request($request);
How do I slip in the code so that I can get the http headers of that
file too, particularly the file content-length.
Thanks,
David Tsai