Hi,

how can I use basic authentication with POE::Component::Client::HTTP?

In LWP::UserAgent I'd do it the following way.

my $ua = LWP::UserAgent->new();

$ua->credentials(
    'server.org:80',
    'basic authentication',
    'username' => 'password'
);

This will allow me to use the basic authentication of the Apache 
webserver, or any other webserver, for example.

I know it's possible to authenticate through a mod_perl module using 
post data, if it accepts this, or using a cookie in 
POE::Component::Client::HTTP, but I didn't see the possibility of basic 
authentication.


Regards,
Andreas

Reply via email to