Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetOptionHAProxyProtocol

Whether to send an HAProxy PROXY protocol header.

Component Version macOS Windows Linux Server iOS SDK
CURL 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionHAProxyProtocol"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The new setting, 1 or 0 1

Result

Returns OK or error.

Description

Whether to send an HAProxy PROXY protocol header.
A value 1 tells the library to send an HAProxy PROXY protocol header at beginning of the connection. The default action is not to send this header.
This option is primarily useful when sending test requests to a service that expects this header.
Most applications do not need this option.
Default 0, do not send HAProxy PROXY protocol header.

See also HAPROXYPROTOCOL option in CURL manual.

See also

Release notes

Blog Entries

Created 16th May 2018, last changed 28th November 2019


CURL.SetOptionGet - CURL.SetOptionHTTP200Aliases