@@ 303-313 (lines=11) @@ | ||
300 | $this->port = $URI_PARTS["port"]; |
|
301 | if($this->_connect($fp)) |
|
302 | { |
|
303 | if($this->_isproxy) |
|
304 | { |
|
305 | // using proxy, send entire URI |
|
306 | $this->_httprequest($URI,$fp,$URI,$this->_submit_method,$this->_submit_type,$postdata); |
|
307 | } |
|
308 | else |
|
309 | { |
|
310 | $path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : ""); |
|
311 | // no proxy, send only the path |
|
312 | $this->_httprequest($path, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
|
313 | } |
|
314 | ||
315 | $this->_disconnect($fp); |
|
316 | ||
@@ 372-382 (lines=11) @@ | ||
369 | $this->host = $URI_PARTS["host"]; |
|
370 | if(!empty($URI_PARTS["port"])) |
|
371 | $this->port = $URI_PARTS["port"]; |
|
372 | if($this->_isproxy) |
|
373 | { |
|
374 | // using proxy, send entire URI |
|
375 | $this->_httpsrequest($URI, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
|
376 | } |
|
377 | else |
|
378 | { |
|
379 | $path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : ""); |
|
380 | // no proxy, send only the path |
|
381 | $this->_httpsrequest($path, $URI, $this->_submit_method, $this->_submit_type, $postdata); |
|
382 | } |
|
383 | ||
384 | if($this->_redirectaddr) |
|
385 | { |