cURL / Mailing Lists / curl-library / Single Mail

curl-library

how can i use libcurl to connect a https?

From: bit bull <bitbull.cn_at_gmail.com>
Date: Fri, 28 Sep 2007 09:55:14 +0800

I download http://my.guardpuppy.com/libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3.zip,
then I
write a piece of code

        curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "username=bitbull&password=aaaaa");
        curl_easy_setopt(curl, CURLOPT_URL, "https://passport.baidu.com/?login");

        ret = curl_easy_perform(curl);

        if (ret)
                printf("%s\n", strerror(ret));

after that, I run this program, it show me "Operation not permitted".

I can use curl.exe -d "username=bitbull&password=aaaaa" -k
https://passport.baidu.com/?login can do this function.

what happened?

thank you
Received on 2007-09-28