smt / buzz-realmed-curl-client
BuzzBrowser curl client with support for http-realm authentication
v1.0.2
2015-12-21 15:49 UTC
Requires
- php: >=5.5
- kriswallsmith/buzz: 0.*
This package is not auto-updated.
Last update: 2024-11-13 10:14:51 UTC
README
Buzz Browser curl client with support for http-realm authentication.
Installation
composer require smt/buzz-realmed-curl-client
That's it!
Usage
<?php
use Smt\Buzz\Client\RealmedCurlClient;
use Buzz\Browser;
$client = new RealmedCurlClient('username', 'password');
$client->setAuthenticationMethod(RealmedCurlClient::AUTH_NTLM);
$browser = new Browser($client);
$browser->get(/* ... */);
Available authentication methods:
RealmedCurlClient::AUTH_ANY
- cURL "any" authentication method;RealmedCurlClient::AUTH_BASIC
- Basic authentication method;RealmedCurlClient::AUTH_NTLM
- NTLM authentication method;RealmedCurlClient::AUTH_DIGEST
- Digest authentication method;RealmedCurlClient::AUTH_NEGOTIATE
- Negotiate authentication method;
For more see Buzz Browser