| @@ 139-149 (lines=11) @@ | ||
| 136 | $this->port = $URI_PARTS["port"]; |
|
| 137 | if($this->_connect($fp)) |
|
| 138 | { |
|
| 139 | if($this->_isproxy) |
|
| 140 | { |
|
| 141 | // using proxy, send entire URI |
|
| 142 | $this->_httprequest($URI,$fp,$URI,$this->_httpmethod); |
|
| 143 | } |
|
| 144 | else |
|
| 145 | { |
|
| 146 | $path = $URI_PARTS["path"].(isset($URI_PARTS["query"]) ? "?".$URI_PARTS["query"] : ""); |
|
| 147 | // no proxy, send only the path |
|
| 148 | $this->_httprequest($path, $fp, $URI, $this->_httpmethod); |
|
| 149 | } |
|
| 150 | ||
| 151 | $this->_disconnect($fp); |
|
| 152 | ||
| @@ 200-210 (lines=11) @@ | ||
| 197 | $this->host = $URI_PARTS["host"]; |
|
| 198 | if(!empty($URI_PARTS["port"])) |
|
| 199 | $this->port = $URI_PARTS["port"]; |
|
| 200 | if($this->_isproxy) |
|
| 201 | { |
|
| 202 | // using proxy, send entire URI |
|
| 203 | $this->_httpsrequest($URI,$URI,$this->_httpmethod); |
|
| 204 | } |
|
| 205 | else |
|
| 206 | { |
|
| 207 | $path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : ""); |
|
| 208 | // no proxy, send only the path |
|
| 209 | $this->_httpsrequest($path, $URI, $this->_httpmethod); |
|
| 210 | } |
|
| 211 | ||
| 212 | if($this->_redirectaddr) |
|
| 213 | { |
|