Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


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

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


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


Returns "OK" on success.


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.

See also HTTP200ALIASES option in CURL manual.


Call with three parameters:

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

See also

Created 18th August 2014, last changed 18th August 2014

CURL.SetOptionHAProxyProtocol   -   CURL.SetOptionHTTPAuth

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins