| @@ 1244-1250 (lines=7) @@ | ||
| 1241 | flush(); |
|
| 1242 | $this->debug('entered send() with data of length: '.strlen($data)); |
|
| 1243 | ||
| 1244 | if($this->proxyhost && $this->proxyport){ |
|
| 1245 | $host = $this->proxyhost; |
|
| 1246 | $port = $this->proxyport; |
|
| 1247 | } else { |
|
| 1248 | $host = $this->host; |
|
| 1249 | $port = $this->port; |
|
| 1250 | } |
|
| 1251 | if($timeout > 0){ |
|
| 1252 | $fp = fsockopen($host, $port, $this->errno, $this->error_str, $timeout); |
|
| 1253 | } else { |
|
| @@ 1340-1346 (lines=7) @@ | ||
| 1337 | $ch = curl_init(); |
|
| 1338 | ||
| 1339 | // set proxy |
|
| 1340 | if($this->proxyhost && $this->proxyport){ |
|
| 1341 | $host = $this->proxyhost; |
|
| 1342 | $port = $this->proxyport; |
|
| 1343 | } else { |
|
| 1344 | $host = $this->host; |
|
| 1345 | $port = $this->port; |
|
| 1346 | } |
|
| 1347 | // set url |
|
| 1348 | $hostURL = ($port != '') ? "https://$host:$port" : "https://$host"; |
|
| 1349 | // add path |
|