curl-library
Protocol https not supported or disabled in libcurl for .aspx site
Date: Wed, 8 Feb 2012 17:31:42 +0100
Hi, i have this error message traing to make a login on a .aspx site. Here is my code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <curl/easy.h>
int main()
{
curl_global_init( CURL_GLOBAL_ALL );
CURL * myHandle = curl_easy_init ( );
curl_easy_setopt(myHandle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
curl_easy_setopt(myHandle, CURLOPT_AUTOREFERER, 1 );
curl_easy_setopt(myHandle, CURLOPT_FOLLOWLOCATION, 1 );
curl_easy_setopt(myHandle, CURLOPT_COOKIEFILE, "");
curl_easy_setopt(myHandle, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(myHandle, CURLOPT_SSL_VERIFYHOST, 2);
curl_easy_setopt(myHandle, CURLOPT_TIMEOUT, 10);
curl_easy_setopt(myHandle, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(myHandle, CURLOPT_URL, "https://trader.iforex.com/webpl/frm.aspx");
curl_easy_perform( myHandle );
curl_easy_setopt(myHandle, CURLOPT_REFERER, "https://trader.iforex.com/webpl/frm.aspx");
char *data="username=myuser_at_lol.com&password=mypassw";
curl_easy_setopt(myHandle, CURLOPT_POSTFIELDS, data);
curl_easy_perform( myHandle );
curl_easy_cleanup( myHandle );
return 0;
}
I HAVE THIS ERRORS:
#Protocol https not supported or disabled in libcurl
#Protocol https not supported or disabled in libcurl
Really do not understand what is wrong. I'm not very familiar with libcurl but I have everything correct.
HERE MY CURL-CONFIG
root_at_ubuntu10.4:/curl-7.24.0/examples# curl-config --version
libcurl 7.24.0
root_at_ubuntu10.4:/curl-7.24.0/examples# curl-config --libs
-L/usr/local/lib -lcurl -L/usr/local/ssl/lib -lidn -lssh2 -lssl -lcrypto -lldap -lrt -lssl -lcrypto -ldl -lz -lz -lssh2
root_at_ubuntu10.4:/curl-7.24.0/examples# curl-config --protocols
DICT
FILE
FTP
FTPS
GOPHER
HTTP
HTTPS
IMAP
IMAPS
LDAP
LDAPS
POP3
POP3S
RTSP
SCP
SFTP
SMTP
SMTPS
TELNET
TFTP
root_at_ubuntu10.4:/curl-7.24.0/examples# curl-config --features
SSL
IPv6
libz
IDN
NTLM
NTLM_WB
Appreciate any help or guide to the solution.
Thanks!!!....
Don.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-08