xref: /aosp_15_r20/external/curl/docs/cmdline-opts/haproxy-protocol.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: haproxy-protocol
5*6236dae4SAndroid Build Coastguard WorkerHelp: Send HAProxy PROXY protocol v1 header
6*6236dae4SAndroid Build Coastguard WorkerProtocols: HTTP
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.60.0
8*6236dae4SAndroid Build Coastguard WorkerCategory: http proxy
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - proxy
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --haproxy-protocol $URL
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--haproxy-protocol`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerSend a HAProxy PROXY protocol v1 header at the beginning of the connection.
19*6236dae4SAndroid Build Coastguard WorkerThis is used by some load balancers and reverse proxies to indicate the
20*6236dae4SAndroid Build Coastguard Workerclient's true IP address and port.
21*6236dae4SAndroid Build Coastguard Worker
22*6236dae4SAndroid Build Coastguard WorkerThis option is primarily useful when sending test requests to a service that
23*6236dae4SAndroid Build Coastguard Workerexpects this header.
24