|
@@ 835-836 (lines=2) @@
|
| 832 |
|
} |
| 833 |
|
if(!empty($body)) |
| 834 |
|
$headers .= "Content-length: ".strlen($body)."\r\n"; |
| 835 |
|
if(!empty($this->user) || !empty($this->pass)) |
| 836 |
|
$headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n"; |
| 837 |
|
|
| 838 |
|
//add proxy auth headers |
| 839 |
|
if(!empty($this->proxy_user)) |
|
@@ 839-840 (lines=2) @@
|
| 836 |
|
$headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n"; |
| 837 |
|
|
| 838 |
|
//add proxy auth headers |
| 839 |
|
if(!empty($this->proxy_user)) |
| 840 |
|
$headers .= 'Proxy-Authorization: ' . 'Basic ' . base64_encode($this->proxy_user . ':' . $this->proxy_pass)."\r\n"; |
| 841 |
|
|
| 842 |
|
|
| 843 |
|
$headers .= "\r\n"; |
|
@@ 999-1000 (lines=2) @@
|
| 996 |
|
} |
| 997 |
|
if(!empty($body)) |
| 998 |
|
$headers[] = "Content-length: ".strlen($body); |
| 999 |
|
if(!empty($this->user) || !empty($this->pass)) |
| 1000 |
|
$headers[] = "Authorization: BASIC ".base64_encode($this->user.":".$this->pass); |
| 1001 |
|
|
| 1002 |
|
$headerfile = tempnam( $this->temp_dir, "sno" ); |
| 1003 |
|
$cmdline_params = '-k -D ' . escapeshellarg( $headerfile ); |