Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
All of the magic in XML::RSS::Tools happens in a sub called _http_get(), which looks like:
# Try and use Gnome HTTP, it's faster eval { require HTTP::GHTTP; }; if ($@) { # Otherwise use LWP require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent("iC-XML::RSS::Tools/$VERSION " . $ua->agent . " ($^O)"); [...] } else { my $r = HTTP::GHTTP->new($uri); $r->process_request; my $xml = $r->get_body; [...] } else { [...] } }
What I'm trying to do, is override that use of the LWP::UserAgent call there, or override the default one that HTTP::GHTTP uses ("libghttp/1.0").
How can I do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overriding module-internal calls
by Aristotle (Chancellor) on Apr 21, 2003 at 19:58 UTC | |
by hacker (Priest) on Apr 22, 2003 at 12:08 UTC | |
by Juerd (Abbot) on Apr 22, 2003 at 12:18 UTC | |
by Anonymous Monk on Apr 22, 2003 at 11:13 UTC | |
by Aristotle (Chancellor) on Apr 22, 2003 at 14:04 UTC | |
|
Re: Overriding module-internal calls
by valdez (Monsignor) on Apr 22, 2003 at 12:57 UTC |