Name
easy:SetOpt_HTTP200Aliases -- specify alternative matches for HTTP 200 OK
Synopsis
easy:SetOpt_HTTP200Aliases(aliases)
Function
Pass a table containing a list of aliases to be treated as valid HTTP 200 responses. Some servers respond with a custom header response line. For example, SHOUTcast servers respond with "ICY 200 OK". Also some very old Icecast 1.3.x servers will respond like that for certain user agent headers or in absence of such. 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. The protocol is assumed to match HTTP 1.0 when an alias match.

Inputs
aliases
input value

Show TOC