jeffromiller
2004-07-13 23:53:01 UTC
I am trying to pull data off of a website that just started using SSL (previously we were pulling data off the site just using http). The old site had url, say, "www.url.com" where the certificate was issued. The new site is "www.urlnew.com" but is using the cert from the old site. I'm pretty sure I can use InternetSetOption to set the INTERNET_FLAG_IGNORE_CERT_CN_INVALID to ignore this "error"...but every time I try to set the option it doesn't actually set anything.
I figure the only values you can set this to are true or false (1 or 0). Here's my line of code:
intRetVal = InternetSetOption(hHttpOpenRequest, INTERNET_FLAG_IGNORE_CERT_CN_INVALID, 1, 1)
What am I doing wrong? Thanks alot!
Jeff M.
I figure the only values you can set this to are true or false (1 or 0). Here's my line of code:
intRetVal = InternetSetOption(hHttpOpenRequest, INTERNET_FLAG_IGNORE_CERT_CN_INVALID, 1, 1)
What am I doing wrong? Thanks alot!
Jeff M.