curl-library
Re: curl_easy_getinfo() for CURLINFO_RESPONSE_CODE does not work for ICY URLs
Date: Mon, 30 Mar 2009 16:28:13 +0200 (CEST)
On Fri, 27 Mar 2009, centrio_at_gmail.com wrote:
>>> Are you seriously saying that "401 Service Unavailable" should be equal to
>>> 200 OK? It sounds a bit strange in my ears...
>
> Yes I am saying this, since I am not aware of any method by which I can get
> this message as a header callback instead of a data callback.
True, there isn't.
>>> Because there's no support for that kind of stunt and I don't even
>>> understand why you thought so in the first place. The "ICY" thing is an
>>> abomination as it is already, let's not continue that silliness any
>>> further.
>
> Since HTTP 400.. response can be treated as HTTP 200 OK,
Yes, there's a "hack option" available in libcurl that makes it accept a set
of strings instead of the "200 OK" that a HTTP server responds for OK.
> So why not ICY 400.
Because the list is only for "200 OK" equivalents.
-- / daniel.haxx.seReceived on 2009-03-30