Skip to content

curl shows "Unsupported HTTP version (0.0) in response" on HTTP 403 responses #197

@muzso

Description

@muzso

Test command:

curl -SsfL -D - --proxy-insecure -k -x "https://127.0.0.1:8090" "https://httpbin.org/status/403"

This will produce the following error:

HTTP/1.1 200 OK
Date: Tue, 27 Feb 2024 01:53:48 GMT
Transfer-Encoding: chunked

curl: (1) Unsupported HTTP version (0.0) in response

Btw. most requests through the proxy end up with this error message.
It's quite rare that a response gets back from the targeted URL.

If I run curl with trace enabled, I don't see any HTTP response from the targeted server at all.
See the attached curl_trace_ascii.txt for the output of the following command:

curl --trace-ascii - --proxy-insecure -k -x "https://127.0.0.1:8090" "https://httpbin.org/status/403" > curl_trace_ascii.txt 2>&1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions