cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Crashes with multithreaded libcurl and SSL redirects

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 16 Jul 2008 09:56:37 -0700

On Wed, Jul 16, 2008 at 04:01:00PM +0000, Job 317 wrote:
> I have a multithreaded app using libcurl. Occasionally I ge a link that
> redirects to an SSL/https link. This, of course, causes problems because
> the app currently is not built with multi-threaded openssl support which
> is what I'm working to solve.
>
> My question, since the URL(s) don't start off being https:// in most
> cases, host do I effectively use libcurl to properly handle SSL
> redirects without crashing due to the mishandling of SSL in my case?

What's the matter with fixing your app?

> Note: I need to support redirects so I have the following settings for
> this currently:
>
> curl_easy_setopt (curl, CURLOPT_MAXREDIRS, (long)5);
> curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, TRUE);
>
> Opinions would be appreciated.

You could also disable automatic redirect handling and do it manually within
the app, disallowing any redirects to SSL-based protocols. Or simply
recompile your libcurl without SSL support.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-16