Skip to content

User-Agent not suppressed by -A for proxy #12680

Closed

Description

@icing

I did this

> nc -l 8000 & sleep 0.1 && curl -A '' -x http://localhost:8000 https://httpbin.org/get
CONNECT httpbin.org:443 HTTP/1.1
Host: httpbin.org:443
User-Agent:
Proxy-Connection: Keep-Alive

(well, actually @dfandrich did), while:

> nc -l 8000 & sleep 0.1 && curl --proxy-header 'User-Agent:' -x http://localhost:8000 https://httpbin.org/get
CONNECT httpbin.org:443 HTTP/1.1
Host: httpbin.org:443
Proxy-Connection: Keep-Alive

I expected the following

Not an empty User-Agent: with -A.

curl/libcurl version

curl 8.5.0

operating system

macOS/Linux/Windows happens on all of them

Activity

  1. changed the title [-]User-Agent not supressed by `-A` for proxy[/-] [+]User-Agent not suppressed by `-A` for proxy[/+] on Jan 10, 2024
  2. added a commit that references this issue on Jan 10, 2024
    0bf37e5
  3. added a commit that references this issue on Jan 27, 2024
    693cd16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions