2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Long: haproxy-protocol
|
|
|
|
Help: Send HAProxy PROXY protocol v1 header
|
|
|
|
Protocols: HTTP
|
|
|
|
Added: 7.60.0
|
|
|
|
Category: http proxy
|
|
|
|
Multi: boolean
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- proxy
|
|
|
|
Example:
|
|
|
|
- --haproxy-protocol $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--haproxy-protocol`
|
|
|
|
|
|
|
|
Send a HAProxy PROXY protocol v1 header at the beginning of the connection.
|
|
|
|
This is used by some load balancers and reverse proxies to indicate the
|
|
|
|
client's true IP address and port.
|
2023-12-11 20:30:44 -05:00
|
|
|
|
|
|
|
This option is primarily useful when sending test requests to a service that
|
|
|
|
expects this header.
|