Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionHTTP200Aliases

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

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.

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde Messdiener Nickenich