cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: How to fetch pop3 mail using libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 21 Oct 2011 14:47:34 +0200 (CEST)

On Fri, 21 Oct 2011, mushubi_at_sympatico.ca wrote:

> curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.gmail.com:995");

Is this service+port perhaps assuming SSL at once? Then you probably want
pop3s://, as the normal pop3:// will assume that you start out plain TCP and
the connection gets upgraded to SSL along the way.

> * About to connect() to pop.gmail.com port 995 (#0)
> * Trying 209.85.225.108... * connected
> * response reading failed

This seems to indicate exactly this...

>> QUIT

This indicate a bug in libcurl methinks, as if the control connection is not
found to be OK it should not attempt to send the QUIT command over it... but
it shouldn't be a problem that affects your case much.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-21