|
@@ 270-277 (lines=8) @@
|
| 267 |
|
if (!empty($URI_PARTS["port"])) |
| 268 |
|
$this->port = $URI_PARTS["port"]; |
| 269 |
|
if ($this->_connect($fp)) { |
| 270 |
|
if ($this->_isproxy) { |
| 271 |
|
// using proxy, send entire URI |
| 272 |
|
$this->_httprequest($URI, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
| 273 |
|
} else { |
| 274 |
|
$path = $URI_PARTS["path"] . ($URI_PARTS["query"] ? "?" . $URI_PARTS["query"] : ""); |
| 275 |
|
// no proxy, send only the path |
| 276 |
|
$this->_httprequest($path, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
$this->_disconnect($fp); |
| 280 |
|
|
|
@@ 327-334 (lines=8) @@
|
| 324 |
|
$this->host = $URI_PARTS["host"]; |
| 325 |
|
if (!empty($URI_PARTS["port"])) |
| 326 |
|
$this->port = $URI_PARTS["port"]; |
| 327 |
|
if ($this->_isproxy) { |
| 328 |
|
// using proxy, send entire URI |
| 329 |
|
$this->_httpsrequest($URI, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
| 330 |
|
} else { |
| 331 |
|
$path = $URI_PARTS["path"] . ($URI_PARTS["query"] ? "?" . $URI_PARTS["query"] : ""); |
| 332 |
|
// no proxy, send only the path |
| 333 |
|
$this->_httpsrequest($path, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
if ($this->_redirectaddr) { |
| 337 |
|
/* url was redirected, check if we've hit the max depth */ |