@@ 693-696 (lines=4) @@ | ||
690 | ||
691 | switch ( $this->authenticationMethod ) { |
|
692 | ||
693 | case 'BASIC': |
|
694 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); |
|
695 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
696 | break; |
|
697 | ||
698 | case 'DIGEST': |
|
699 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
|
@@ 698-701 (lines=4) @@ | ||
695 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
696 | break; |
|
697 | ||
698 | case 'DIGEST': |
|
699 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
|
700 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
701 | break; |
|
702 | ||
703 | case 'SPNEGO': |
|
704 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_GSSNEGOTIATE); |
|
@@ 703-706 (lines=4) @@ | ||
700 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
701 | break; |
|
702 | ||
703 | case 'SPNEGO': |
|
704 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_GSSNEGOTIATE); |
|
705 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
706 | break; |
|
707 | ||
708 | case 'NTLM': |
|
709 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM); |
|
@@ 708-711 (lines=4) @@ | ||
705 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
706 | break; |
|
707 | ||
708 | case 'NTLM': |
|
709 | curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM); |
|
710 | curl_setopt($this->ch, CURLOPT_USERPWD, $this->user.":".$this->pass); |
|
711 | break; |
|
712 | ||
713 | } |
|
714 |