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

"Chris 'BinGOs' Williams" <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Wed, Sep 09, 2009 at 01:18:19PM +0200, Andreas Altergott wrote:
> Hi,

Yo,

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

As you are providing an HTTP::Request object to PoCo::Client::HTTP's
request mechanism, you can provide basic authentication through methods
on that object.

Those methods are documented in HTTP::Headers, as HTTP::Request objects
inherit from HTTP::Message, which in turn inherits from HTTP::Headers.

Have a look for the authorization_basic method in the documentation.

Cheers,

-- 
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFKqAGQ7eyMi0ZYZx8RAr7nAJwLl/U+29IsE6n5pjkM2T3OgyXQGgCfcDUL
ykDUtTOPEeVCcy+i/4siO1A=
=gM2t
-----END PGP SIGNATURE-----
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.