[dev] How to make authentication with Horde_Http_Client?
Mathieu Parent
math.parent at gmail.com
Thu Oct 1 19:15:15 UTC 2009
On Thu, Oct 1, 2009 at 8:07 PM, Chuck Hagenbuch <chuck at horde.org> wrote:
> We now have support for at least basic:
> http://lists.horde.org/archives/commits/2009-October/002003.html
>
> A simple example:
>
> $client = new Horde_Http_Client();
> $client->request->username = 'user';
> $client->request->password = 'pass';
>
> echo $client->get('url');
Great! Thanks a lot.
Mathieu
> You can change the scheme to digest or NTLM if you have support for the curl
> or pecl_http adapters:
> $client->request->authenticationScheme = Horde_Http::AUTH_DIGEST;
>
> -chuck
More information about the dev
mailing list