curl-library
Re: How to get the HTTP response string?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 2 Jul 2004 09:31:09 +0200 (CEST)
Date: Fri, 2 Jul 2004 09:31:09 +0200 (CEST)
On Thu, 1 Jul 2004, Olano, Ever wrote:
> Hi. I know how to get the HTTP response code. In the following sample
> status line:
>
> HTTP/1.0 404 Not Found
>
> How would I programmatically get the "Not Found" part? I can't find a
> constant for it in curl_easy_getinfo(). If there's no way, that's fine.
> Just thought maybe I missed it.
Get the headers with a header callback and extract that info yourself. There's
no premade *getinfo() way to retrieve it, no.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-07-02