Windows Forms connecting to SSL website

I currently need to connect to an SSL website from a windows forms app and upload a file. I need to connect, pass my username and password and then when authenticated I'll need to upload a file. If it was normal HTTP there would not be a problem of course but since it's SSL there's alot more to be done my end. Does anyone know of how I can accomplish this? I've seen a few components out there, but of course don't know how good they are so if anyone knows of a way to do it programmatically myself or of a good component I'd appreciate the help. Thanks
TerraKeithAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
There are some ways of connecting to SSL sites, it varies regarding the site you are using.

Which site is it?

See 2 ways of downloading files from SSL sites at http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21187843.html
0
 
Justin_Case_77Connect With a Mentor Commented:
If you're using xmlhttp, I've used this setOption() function to send a certificate or have the app ignore the certificate request.

xmlhttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, xmlhttp.getOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS) _- SXH_SERVER_CERT_IGNORE_CERT_DATE_INVALID)

I recently used: xmlhttp.setOption(2) = xmlhttp.getOption(2) to get through using SSL
Please use it before Open statement.

Here is more info on the MSDN site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmmthsetoption.asp

0
 
TerraKeithAuthor Commented:
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Éric MoreauSenior .Net ConsultantCommented:
Have you tried both method I used in my previous link?

Have you tried contacting them to know if they have code samples?
0
 
TerraKeithAuthor Commented:
The methods in the links you gave me were for downloading a file I need to upload. In saying this I tried connecting no a non ssl site to see if I could post form data to a page looking for username and password and then navigating to the upload page. This did not work however, after posting using the webbrowser.navigate method it did not post the data i.e. it did not send me to the upload page after authenticating myself.

They don't have code samples, clients generally use the web site. I heard it mentioned that clients sometimes use javascript to automate it somewhat but I don't see how this could be done.
0
 
Éric MoreauSenior .Net ConsultantCommented:
­­>>it did not send me to the upload page after authenticating myself.

then you have a problem! If you cannot do it using the webbrowser you will have hard time automating it!
0
 
gregasmCommented:
Hi TerraKieth,
Take a look at this PAQ, it may be useful to you.
Greg
0
 
gregasmCommented:
Hi Bob,

The link i referred TerraKieth to has been helpful in resolving several other PAQs based on similar questions. I think it may have been helpful, but without a confirmation from him, we cannot know for sure.

Thanks,
Greg
0
All Courses

From novice to tech pro — start learning today.