cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_PASSWDFUNCTION

From: Joerg Mueller-Tolk <curl_at_mueller-tolk.de>
Date: Tue, 05 Aug 2003 10:59:33 +0200

Hi all

I reconsidered my last posting about a new authentification callback
last night and found most of my new thought in my email inbox this
morning :-)

Daniel asked why to introduce a new callback.
It could make it easier for people not too familiar with curl.
Not only for the ones that write it, but also the ones that have to read
and understand it later.
Various data could be bundeled obviously as its parameters, like:
- authentification scheme (BASIC|DIGEST|NTLM)
- realm
- hostname
- host type (proxy|destination host|host after redirection)
- curl easy handle

Sample programs will look leaner if there is no loop around them.

To url-encode the domain_user_passwd string sound very good.

>What would 'prompt' do?
>
I thought it for something like hostname and/or realm, but to keep them
separate appears better to me now.

>Would this be called for FTP as well?
>
FTP can be done over a proxy as well. There won't be a realm string, but
why not.

>Perhaps it would be easier if you started out by telling why your current
>"wait for 407" isn't good enough? After all, that 407 round-trip is still
>gonna be made even if this system were added.
>
>
Sure, we could also cope without it.

best regards
Joerg M-T

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-05