RFC 7230, Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing states in the appendix:
As a result, clients are encouraged not to send the Proxy-Connection header field in any requests.
Why is curl sending this header then, when using a proxy?
$ http_proxy=0.0.0.0:8080 curl -v http://google.com
...
> Accept: */*
> Referer:
> Proxy-Connection: Keep-Alive
>
...
I am using curl 7.71.1 on x86_64-pc-linux-gnu.
Addendum: It's another protocol, but HTTP/2 explicitly disallows Connection
and related fields, as per RFC 7540 Section 8.1.2.2