Class Guzzle\Plugin\CurlAuth\CurlAuthPlugin

InheritanceGuzzle\Plugin\CurlAuth\CurlAuthPlugin
ImplementsSymfony\Component\EventDispatcher\EventSubscriberInterface
Deprecated since version Use $client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');

Adds specified curl auth to all requests sent from a client. Defaults to CURLAUTH_BASIC if none supplied.

Method Details

__construct() public method

public void __construct ( $username, $password, $scheme CURLAUTH_BASIC )
$username string

HTTP basic auth username

$password string

Password

$scheme int

Curl auth scheme

getSubscribedEvents() public static method

public static void getSubscribedEvents ( )
onRequestCreate() public method

Add basic auth

public void onRequestCreate ( Guzzle\Common\Event $event )
$event Guzzle\Common\Event