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

CURL.SetOptionHTTP200Aliases

Sets list of aliases to be treated as valid HTTP 200 responses.

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

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value... List of aliases. "ICY 200 OK"

Result

Returns "OK" on success.

Description

Sets list of aliases to be treated as valid HTTP 200 responses.
Some servers respond with a custom header response line. For example, IceCast servers respond with "ICY 200 OK". By including this string in your list of aliases, the response will be treated as a valid HTTP header line such as "HTTP/1.0 200 OK".

The alias itself is not parsed for any version strings. Before libcurl 7.16.3, Libcurl used the value set by option CURL.SetOptionHTTPVersion, but starting with 7.16.3 the protocol is assumed to match HTTP 1.0 when an alias matched.

This option takes a list of items. So this function takes a variable number of arguments. If you call function with 2 parameters, you set an empty list. If you call it with 5 parameters, you set a list with 3 values.

This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Value parameter as often as you need.

See also HTTP200ALIASES option in CURL manual.

Examples

Call with three parameters:

MBS( "CURL.SetOptionHTTP200Aliases"; handle; $value1; $value2; $value3 )

See also

Created 18th August 2014, last changed 5th June 2021


CURL.SetOptionHAProxyProtocol - CURL.SetOptionHTTPAuth