cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL and basic authentication.

From: Josef Wolf <jw_at_raven.inka.de>
Date: Thu, 23 Oct 2008 16:52:52 +0200

On Wed, Oct 22, 2008 at 08:39:20PM +0200, Josef Wolf wrote:
> On Wed, Oct 22, 2008 at 09:30:08AM +0200, Daniel Stenberg wrote:
> > On Wed, 22 Oct 2008, Josef Wolf wrote:
> > >2. The library part: This part should detect the 401, call a callback
> > > into the application to retrieve the credentials, and finally retry
> > > the request with the supplied credentials.
> > >
> > Why would a callback be needed for this? Why not simply return back
> > to let the application detect the situation, ask the user, set the
> > credentials and call libcurl again?
>
> For sure, this can be done without a callback. But I think the callback
> solution would be the better solution for several reasons:

Any opinions on this?
Received on 2008-10-23