sqlmapproject/sqlmap · error · SqlmapMissingDependence

native HTTP/2 client does not support SOCKS proxies (omit '-

Error message

native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)

What it means

Error "native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)" thrown in sqlmapproject/sqlmap.

Source

Thrown at lib/request/connect.py:730

                            cookie.value = ""
                        else:
                            for char in (r"\r", r"\n"):
                                cookie.value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", cookie.value)

                # Build-only capture: return the fully-assembled request instead of sending it, so the
                # HTTP/2 timeless-timing oracle (lib/request/timeless.py) can coalesce two of these into a
                # single multiplexed pair rather than issue them as independent single-stream requests.
                if kwargs.get("buildOnly"):
                    return (url, method or (HTTPMETHOD.POST if post is not None else HTTPMETHOD.GET), headers, post)

                if conf.http2:
                    from lib.request.http2 import open_url as http2OpenUrl
                    from lib.request.http2 import proxy_tuple

                    try:
                        h2proxy = proxy_tuple(conf.proxy, conf.proxyCred)
                    except ValueError:
                        raise SqlmapMissingDependence("native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)")

                    try:
                        conn = http2OpenUrl(url, method or (HTTPMETHOD.POST if post is not None else HTTPMETHOD.GET), headers, post, timeout, follow_redirects=kb.choices.redirect != REDIRECTION.NO, proxy=h2proxy)
                    except IOError as ex:
                        raise _http_client.HTTPException(getSafeExString(ex))
                    else:
                        if conn.code >= 400:
                            raise _urllib.error.HTTPError(url, conn.code, conn.msg, conn.info(), io.BytesIO(conn.read()))

                        requestMsg = re.sub(r" HTTP/[0-9.]+\r\n", " %s\r\n" % conn.http_version, requestMsg, count=1)

                        if not multipart:
                            threadData.lastRequestMsg = requestMsg

                            logger.log(CUSTOM_LOGGING.TRAFFIC_OUT, requestMsg)
                else:
                    if not multipart:
                        threadData.lastRequestMsg = requestMsg

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at lib/request/connect.py:730 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26). Data as JSON: /api/errors/1031506e11de1247. Report an issue: GitHub.