1--- 2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3SPDX-License-Identifier: curl 4Long: proxy-header 5Arg: <header/@file> 6Help: Pass custom header(s) to proxy 7Protocols: HTTP 8Added: 7.37.0 9Category: proxy 10Multi: append 11See-also: 12 - proxy 13Example: 14 - --proxy-header "X-First-Name: Joe" -x http://proxy $URL 15 - --proxy-header "User-Agent: surprise" -x http://proxy $URL 16 - --proxy-header "Host:" -x http://proxy $URL 17--- 18 19# `--proxy-header` 20 21Extra header to include in the request when sending HTTP to a proxy. You may 22specify any number of extra headers. This is the equivalent option to --header 23but is for proxy communication only like in CONNECT requests when you want a 24separate header sent to the proxy to what is sent to the actual remote host. 25 26curl makes sure that each header you add/replace is sent with the proper 27end-of-line marker, you should thus **not** add that as a part of the header 28content: do not add newlines or carriage returns, they only mess things up for 29you. 30 31Headers specified with this option are not included in requests that curl 32knows are not be sent to a proxy. 33 34This option can take an argument in @filename style, which then adds a header 35for each line in the input file (added in 7.55.0). Using @- makes curl read 36the headers from stdin. 37 38This option can be used multiple times to add/replace/remove multiple headers. 39