Hi there:
        Is there an elegant way to get LWP::Simple to use a proxy?  How can I 
access the user agent $ua in the head method.  It seems I should somehow be able 
to tell it to use _my_ $ua and not its own.  I'd like to know how.  The first 
lines of head look like this:

sub head ($)
{
    my($url) = @_;
    _init_ua() unless $ua;

so on and so forth...
 
        I've been writing a script to automate checking every web page in our 
department for stale links, so naturally I turned to the Perl Cookbook.  The 
program churl in chapeter 20 uses LWP::Simple's head method, but doesn't go 
through our system's proxy.  Using the $ua->proxy method from LWP::UserAgent 
didn't work until I pasted the head method from LWP::Simple into the program.
        Thanks for any insight,
---
Boyd Duffee                     Keele University    (01782) 583437 
Computing Officer               http://www.astro.keele.ac.uk/~bjd/
"Le singe est dans l'arbre" - Eddie Izzard

Reply via email to