Text of github.com › curl › curl › issues › 9442 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Wrong behavior when using HTTP proxy with --haproxy-protocol enabled · Issue #9442 · curl/curl · GitHub

Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Wrong behavior when using HTTP proxy with --haproxy-protocol enabled #9442 New issue Copy link New issue Copy link Closed Closed Wrong behavior when using HTTP proxy with --haproxy-protocol enabled #9442 Copy link Labels connecting & proxies help wanted Description ginuerzh opened on Sep 6, 2022 Issue body actions I did this curl sends the proxy protocol header twice.

For HTTPS request: curl -k -x localhost:8080 --haproxy-protocol https://localhost:8000 After connected to proxy server, it send the header immediately, followed by TLS client hello, but then it send the header again. For HTTP request: curl -k -v --proxytunnel -x localhost:8080 --haproxy-protocol http://localhost:8000 After connected to proxy server, it send two consecutive headers immediately. curl/libcurl version curl 7.85.0 (x86_64-pc-linux-gnu) libcurl/7.85.0 OpenSSL/1.1.1f zlib/1.2.11 Release-Date: 2022-08-31 Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP UnixSockets operating system Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal Linux ubuntu 5.15.0-46-generic #49 ~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Activity bagder added connecting & proxies on Sep 6, 2022 bagder added help wanted on Sep 24, 2022 bagder closed this as completed in 11ad25f on Nov 10, 2022 Sign up for free to join this conversation on GitHub.

Already have an account? Sign in to comment Metadata Metadata Assignees No one assigned Labels connecting & proxies help wanted Type No type Projects No projects Milestone No milestone Relationships None yet Development No branches or pull requests Issue actions You can’t perform that action at this time.