def run(self, url, path, pipe=None, headers=None, cookies=None, body=""):
        self.url = url
        host = self.url.netloc

        httpclient = self.init_httpclient()
        httpclient.follow_redirects = False
        httplib2.debuglevel = self.args.debuglevel

        # check for authentication credentials
        if "@" in host:
            split = host.split("@")
            if len(split) > 1:
                host = split[1]
                creds = split[0].split(":")
                httpclient.add_credentials(creds[0], creds[1])
            else:
                host = split[0]

        uri = "{0}://{1}{2}".format(self.url.scheme, host, path)

        if not self.args.disable_cookies:
            self.set_request_cookies(cookies, headers)

        if not "host" in headers:
            headers["host"] = host
        if not headers in "accept-encoding":
            headers["accept-encoding"] = "gzip, deflate"
        if not "user-agent" in headers:
            headers["user-agent"] = "httpsh/" + version.VERSION

        self.logger.print_text("Connecting to " + uri)

        response, content = httpclient.request(
            uri, method=self.verb, body=body, headers=headers)

        self.handle_response(response, content, headers, cookies, pipe)
dataset/ETHPy150Open chrislongo/HttpShell/httpshell/http.py/Http.run/swapped operands of `in`