cURL / Mailing Lists / curl-library / Single Mail


how can i use libcurl to connect a https?

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

I download,
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, "");

        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 can do this function.

what happened?

thank you
Received on 2007-09-28