curl-library
Re: realm in 401 message.
Date: Mon, 31 Jan 2005 13:38:32 +0100 (CET)
On Mon, 31 Jan 2005, Arvind Sachdeva wrote:
> Why cant I retrieve the realm from 401 message using curl_easy_getinfo ? I
> cant think of any particular reason why this is not exposed to the
> Programmer.
I'll give you a particular reason: no one implemented it. I'm open for patches
that provide this.
> I cannot implement an efficient password caching mechanism in my app without
> knowing the realm ? Parsing the headers (from writeheaders function) is an
> ugly workaround, can anybody suggest something better ? What ugly
> sideeffects I can expect by using debug callbacks ?
Why is header callbacks uglier than relying on the debug callbacks? You know
the header format, you know the header callback will work. I don't call that
ugly, even if it introduces a little degree of HTTP-knowledge to your app that
libcurl otherwise makes an effort to hide.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2005-01-31