Accessing SSL secured web sites from C# application.

S

Sin Jeong-hun

I'm quite familiar with dealing standard HTML login and form posting.
Those could be handled using HttpWebRequest and CookieContainer. But
some web sites are SSL secured. The html pages are so complicated (too
many external JavaScripts, frames and they even blocked right mouse
click) that I used Ethereal to catch the form posting but nothing was
captuered when the filter was set HTTP. After I removed the filter, I
could see many TCP and SSL2, SSL3 messages but I couldn't figure out
how the web browser had posted the form with those.

Is there any good article on the internet that explains how to access
(login & form posting) SSL-enabled sites using C#? Thank you.
 
N

Nicholas Paldino [.NET/C# MVP]

Sin Jeong-hun,

There is no difference in accessing an HTTP vs a HTTPS resource using
the HttpWebRequest/HttpWebResponse classes. It's the Javascript that is
making things difficult.

I would say that you should use a tool like Fiddler, which is an HTTP
interceptor to see what is being sent (along with cookies and whatnot),
which you could then use to figure out what calls to make to
HttpWebRequest/HttpWebResponse.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top