@@ 151-161 (lines=11) @@ | ||
148 | $this->port = $URI_PARTS["port"]; |
|
149 | if($this->_connect($fp)) |
|
150 | { |
|
151 | if($this->_isproxy) |
|
152 | { |
|
153 | // using proxy, send entire URI |
|
154 | $this->_httprequest($URI,$fp,$URI,$this->_httpmethod); |
|
155 | } |
|
156 | else |
|
157 | { |
|
158 | $path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : ""); |
|
159 | // no proxy, send only the path |
|
160 | $this->_httprequest($path, $fp, $URI, $this->_httpmethod); |
|
161 | } |
|
162 | ||
163 | $this->_disconnect($fp); |
|
164 | ||
@@ 213-223 (lines=11) @@ | ||
210 | $this->host = $URI_PARTS["host"]; |
|
211 | if(!empty($URI_PARTS["port"])) |
|
212 | $this->port = $URI_PARTS["port"]; |
|
213 | if($this->_isproxy) |
|
214 | { |
|
215 | // using proxy, send entire URI |
|
216 | $this->_httpsrequest($URI,$URI,$this->_httpmethod); |
|
217 | } |
|
218 | else |
|
219 | { |
|
220 | $path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : ""); |
|
221 | // no proxy, send only the path |
|
222 | $this->_httpsrequest($path, $URI, $this->_httpmethod); |
|
223 | } |
|
224 | ||
225 | if($this->_redirectaddr) |
|
226 | { |