custom-class.php 385 B

12345678910111213
  1. <?php
  2. class Requests_Auth_Digest extends Requests_Auth_Basic {
  3. /**
  4. * Set cURL parameters before the data is sent
  5. *
  6. * @param resource $handle cURL resource
  7. */
  8. public function curl_before_send( &$handle ) {
  9. curl_setopt( $handle, CURLOPT_USERPWD, $this->getAuthString() );
  10. curl_setopt( $handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY ); //CURLAUTH_ANY work with Wowza RESTful
  11. }
  12. }