basic authentication with POE::Component::Client::HTTP

[email protected] (Andreas Altergott)
Newsgroups perl.poe
Organization MIRA Consulting GmbH
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.