curl-library
Re: libcurl and ssl/tls/https
Date: Tue, 22 Dec 2009 02:27:16 +0700
You can always do this:
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,0);
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYHOST,0);
But that disables the cert checks so your secure http connection is not so
secure anymore.
Br,
Jani
On Tue, Dec 22, 2009 at 1:01 AM, Joshua McCracken
<h.samantha529_at_gmail.com>wrote:
> Hey all!
>
> New to the mailing list here. I've been looking for some docs on using
> Transport Layer Security and it's predecessors in conjunction with libcurl.
> Basically, I need to be able to make some POST requests over https and my
> goal is to make this as easy as possible for those using my software, which
> will be open sourced once I have implemented this functionality. I am a
> little bit confused about the options I can set with curl_easy_setopts(),
> and precisely which ones I would need. Looking at the example code present
> here:
> http://curl.haxx.se/libcurl/c/simplessl.html
>
> hasn't helped much. Do I really need to specify all of these options? This
> seems a little bit overly complicated. Forcing users to manually specify a
> cert file through the command line is really not the route I would like to
> go but I'm not so sure that would even be neccessary for the functionality
> that I am looking for.
>
> More than likely, I'm just not understanding what little documentation I
> can find on this subject. All I need to do is write it to make a https post
> request to a url specified by the user in a command line argument. I've
> already taken care of everything else, and tested it thoroughly.
>
>
>
> --
> Freelance Writer @ http://www.helium.com/users/456368
> Owner @ http://logicdoctrine.blogspot.com
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-21