Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of LTjake (4001)

Wednesday July 23, 2003
02:54 PM

HTTP response codes part deux

[ #13649 ]

I was able to add authentication by subclassing LWP::UserAgent and overriding the get_basic_credentials() sub. I also had to switch from simple_request() to request() in order for that sub to be called automatically. I also had to turn off auto-redirects ($agent->requests_redirectable( [] );) so i can decide how i want to proceed when a redirect is returned.

The w3c has a few test pages allowing me to test out the authentication.

I'm now eval'ing any RSS data i get (eval { $rss->parse( $data ); };) so i can stop any malformed XML from being injected into the cache and buggering up the aggregator.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.