|
@@ 680-681 (lines=2) @@
|
| 677 |
|
} |
| 678 |
|
if (!empty($body)) |
| 679 |
|
$headers .= "Content-length: " . strlen($body) . "\r\n"; |
| 680 |
|
if (!empty($this->user) || !empty($this->pass)) |
| 681 |
|
$headers .= "Authorization: Basic " . base64_encode($this->user . ":" . $this->pass) . "\r\n"; |
| 682 |
|
|
| 683 |
|
//add proxy auth headers |
| 684 |
|
if (!empty($this->proxy_user)) |
|
@@ 684-685 (lines=2) @@
|
| 681 |
|
$headers .= "Authorization: Basic " . base64_encode($this->user . ":" . $this->pass) . "\r\n"; |
| 682 |
|
|
| 683 |
|
//add proxy auth headers |
| 684 |
|
if (!empty($this->proxy_user)) |
| 685 |
|
$headers .= 'Proxy-Authorization: ' . 'Basic ' . base64_encode($this->proxy_user . ':' . $this->proxy_pass) . "\r\n"; |
| 686 |
|
|
| 687 |
|
|
| 688 |
|
$headers .= "\r\n"; |