curl-library
RE: testing for connectivity to the SMTP server using libcurl APIs
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Nov 2012 20:01:06 +0100 (CET)
Date: Thu, 22 Nov 2012 20:01:06 +0100 (CET)
On Thu, 22 Nov 2012, Chandran, Naveen wrote:
(Please don't top-post:
http://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post)
> I did try with the CURLOPT_NOBODY option set to 1. With that change however,
> I get the following error after the initial server greeting:
>
> .
> .
> < 250-XUSR
> < 250 HELP
>> MAIL FROM:<xxx_at_yyy.com>
> < 250 < xxx_at_yyy.com >... Sender ok
> * response reading failed
That seems odd, as I don't see how the CURLOPT_NOBODY option is even involved
at that part. "response reading failed" indicates an error from recv() in
lib/pingpong.c:Curl_pp_readresp().
I would say that CURLOPT_NOBODY still feels like the correct way this should
work with...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-11-22