cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl exception with bad url

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 23 Aug 2011 00:08:55 +0200 (CEST)

On Mon, 22 Aug 2011, Robert Navarro wrote:

> when the system receiving messages at that URL is down or not responding, I
> get an exception instead of a timeout return.

That sounds unlikely. libcurl is a C library and it can't generate exceptions.

> try
> {
> res = curl_easy_perform(curl);
> }
> catch (System::Exception* e) <--- catching this because I don't know
> what else to catch, prevents service from stopping

I have no idea how you'd get an exception from that function call!

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