Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

downloading pages with problematic security certificates

When I go to a website manually it says there is a problem with its security certificate.
I can press continue and then carry on to the site.

I'm trying to download data from this website.  How can my program do the equivalent of pressing continue?
It has an https rather than an http prefix.
I'm using C# windows forms with .net framework 3.5.
Avatar of inxni
inxni
Flag of Thailand image

It happened because that site's ssl certificate is not secure (They generate it themselves, for example).
That error message is browser's feature, I don't think you will have any problem when access it with your code.
Avatar of AlHal2

ASKER

The program is  failing in the beginning.

webBrowser1.Navigate(URL);

I get error saying navigation to the page is cancelled.

And the response will have html of error page.
ASKER CERTIFIED SOLUTION
Avatar of inxni
inxni
Flag of Thailand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

Thanks.