Code Duplication    Length = 8-8 lines in 2 locations

htdocs/class/snoopy.php 2 locations

@@ 142-149 (lines=8) @@
139
                if (!empty($URI_PARTS["port"]))
140
                    $this->port = $URI_PARTS["port"];
141
                if ($this->_connect($fp)) {
142
                    if ($this->_isproxy) {
143
                        // using proxy, send entire URI
144
                        $this->_httprequest($URI, $fp, $URI, $this->_httpmethod);
145
                    } else {
146
                        $path = $URI_PARTS["path"] . ($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
@@ 192-199 (lines=8) @@
189
                $this->host = $URI_PARTS["host"];
190
                if (!empty($URI_PARTS["port"]))
191
                    $this->port = $URI_PARTS["port"];
192
                if ($this->_isproxy) {
193
                    // using proxy, send entire URI
194
                    $this->_httpsrequest($URI, $URI, $this->_httpmethod);
195
                } else {
196
                    $path = $URI_PARTS["path"] . ($URI_PARTS["query"] ? "?" . $URI_PARTS["query"] : "");
197
                    // no proxy, send only the path
198
                    $this->_httpsrequest($path, $URI, $this->_httpmethod);
199
                }
200
201
                if ($this->_redirectaddr) {
202
                    /* url was redirected, check if we've hit the max depth */