1 Jan 2010 02:02
Libcurl and c-ares
Adrian Michel <adrian <at> amichel.com>
2010-01-01 01:02:00 GMT
2010-01-01 01:02:00 GMT
This is a follow-up to my previous post about async cancelation of a DNS lookup. 1. Building libcurl with c-ares support. As suggested by Daniel, I defined USE_ARES in the libcurl project and built it. There were no compiler or link errors, so I assume libcurl has built-in c-ares support and it doesn't require any additional h or lib files. Could you please confirm this. BTW, why doesn't libcurl use ares by default? 2. Using c-ares within curl I ran the app with the new dll and I didn't notice any obvious difference, which is what I expected. Now, what are the enhancements that I could take advantage of at the libcurl API level? Are there new functions or callbacks that I can use to do async cancel, or to get progress status during a lengthy DNS request? Thanks all, Adrian ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
> ..
Hm. Are you considering doing a LIST parsing? In my book that is really nasty
stuff that will take time and lots of work to get working even half decent.
I was kind of hoping we could get away with doing NLST...
> I thought about it .. I propose, that there could be new CURLOPT_RECURSIVE
> or something like this and default should be "false" probably?
I propose we simply ignore recursiveness to start with. Recursive is not a
This is now supported, and test case 803 verifies it!
> Just a small remark abour CURLOPT_MAIL_RCPT: in the current version, you can
> only send a mail to a single address. The protocol allows you to specify
> several RCPT TO statements for the same mail. I would suggest to change
> CURLOPT_MAIL_RCPT char* argument into a struct slist* for that purpose.
Right, this is now what I've made it into.
> Also forcing <> around the CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT values
> supposes they are e-mail addresses alone, making arguments as "name surname
> <e-mail-address>" infeasible; extra mail-parameters and rcpt-parameters
> cannot be specified either.
Indeed, I removed those hardcoded things as well.
Thanks a lot for your continued feedback.
POP3, IMAP and SMTP can now be tested with our standard test suite as the test
FTP server now has been made capable of speaking the other protocols too.
I will appreciate more feedback and testing of these new protocols as I
believe they are now starting to become really usable!
RSS Feed