Answer the question
In order to leave comments, you need to log in
libcrul and https?
I'm fighting for life and death for the right to request an https server using libcurl (i.e. "c").
In si, I am obviously weak, only a small experience from the university.
Bottom line: I'm trying to make a request to the https server using libcurl.
There is a php script that works perfectly, doing what it intended. However, you need speed.
php curl
options CURLE_FTP_SSL_FAILED: 0
CURLOPT_SSL_VERIFYHOST: 0
CURLOPT_SSLVERSION: 3
CURLOPT_SSL_CIPHER_LIST: "RC4-SHA"
CURLOPT_CAINFO: "path to the keyed certificate"
CURLOPT_SSLCERT: "path to the certificate"
CURLOPT_HTTPHEADER: "content-Type" -8"
curl options to "c"
curl_easy_setopt(curl, CURLOPT_URL, "https:url");
curl_easy_setopt(curl, CURLOPT_HEADER, "Content-Type: text/xml; charset=UTF-8");
curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM");
curl_easy_setopt(curl,CURLOPT_SSLCERT, "путь к сертификату склееного с ключом");
curl_easy_setopt(curl, CURLOPT_CAINFO, "путь к сертификату");
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER , 0);
curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, "RC4-SHA");
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question