4
0

custom.class.php 382 B

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