| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
RE: introduced an auth callback
From: Joe Mason <jmason_at_rim.com>
Date: Mon, 14 May 2012 16:28:37 +0000
> From: curl-library-bounces_at_cool.haxx.se [curl-library-bounces_at_cool.haxx.se] on
Currently the implementation is HTTP-only. I think the interface should be general enough to work with other protocols, and then we can add other implementations over time.
I'm interested in extending it to FTP as well, but that's lower priority for me. I haven't looked at curl's SMTP support at all.
What additional parameters to the callback would SMTP need? Do you think there should be another parameter for what the protocol is (HTTP, FTP, SMTP, etc)? (We already pass the CURL* and presumably the app can keep track of what protocol it is using with each CURL* handle, but it would be a convenience.)
Perhaps instead of CURLAUTH_TYPE_HOST and CURLAUTH_TYPE_PROXY, it should use CURLAUTH_TYPE_HTTP, and then we can add CURLAUTH_TYPE_FTP and CURLAUTH_TYPE_SMTP as support for those protocols is added.
To set the SMTP protocol type we'd want to add another curl_cb_* function. (That's another good reason to use curl_cb_* instead of in/out parameters in the auth callback!)
Joe
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info