SSL access
- Posted by Pete Stoner <stoner.pete at gmail.com> Jan 31, 2007
- 563 views
Hi Guys, I need to be able to read a web page using SSL (https). For my normal FTP and http access I've been using Einetlib by Fabio Ramirez which works great, but I can't get it to work to an https page. it always complains about an invalid certificate with a ERROR_INTERNET_INVALID_CA error. As per the wininet API I tried adding some 'ignore' flags to my openurl as below hFile= InternetOpenUrl({ {"session_id",hConn}, {"url","https://mypage..."}, {"flags", net_or_all({INTERNET_FLAG_RELOAD, INTERNET_FLAG_IGNORE_CERT_CN_INVALID, INTERNET_FLAG_IGNORE_CERT_DATE_INVALID}) }}) Still doesn't work, so then I tried EuLibCurl, but it seems the libcurl Dll is built without SSL support. I tried downloading an SSL version and replacing the original with that (don't know what I'm doing but it was worth a try!), but then I it can't open the dll.. Any suggestions from you clever guys? PeteS