Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetOptionHTTP200Aliases

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"; Handle; Value )

Parameters

Parameter Description Example value
Handle 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.

Examples

Call with three parameters:

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

See also


CURL.SetOptionGet   -   CURL.SetOptionHTTPAuth

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins