Click here to Skip to main content
15,886,003 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have a shared path under a HTTPS website which can only be accessed by authorized people. The path is protected by Internet Security and Acceleration Server 2006.
I have my own ID and password to access the files in that path but only through the browser.

Now all I need is to learn how to use all the details that I have, to be put in a C# web application so that I can use those files to view details in my page.

I have trouble with the path and the authentication credentials, as I don't know how and where to mention them in the application. As such it is a HTTPS website link, under which I have a shared folder to which I have access but only when I enter my ID and password.

Sample path name: https://mysample.example.com/SharedStoragePath/

I'm a beginner, so kindly excuse my faults if any.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Aug-12 17:36pm    
This is not a shared network path (where you would have to use regular file operations). This is the URL with HTTPS scheme.
--SA

Please see my comment to the question, where I explain why it is not valid. If your files are already served up by some HTTP server, you need to access to the file using some client side. Generally, you can only download files. Uploading is only possible if the server supports it; usually it provides some HTML page with a Web form or a special control where the HTTP requests are done using Ajax.

Practically, the difference between HTTP and HTTPS is that you need to pass authentication in the same client's session.

Now, it's not clear if you need some code on server side or on client side; in principle, you can do both. Most usual questions are about the client side. Basically, you can do everything using the class System.Net.HttpWebRequest (for both HTTP and HTTPS). Please see:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].

—SA
 
Share this answer
 
Comments
Clifford Nelson 15-Aug-12 19:03pm    
Since he has permissions, it would seem that he just needs a service to read requests and to access the actual disks.
Sergey Alexandrovich Kryukov 15-Aug-12 19:11pm    
What requests? This is HTTP, apparently. Yes, permissions matter.
--SA
Clifford Nelson 15-Aug-12 19:38pm    
I am not an ASP.Net developer, but would think you could set up a communication link just like with a database. In fact I would think you could use WCF. Then pass requests via this link. You could always just use a database with the requests and get them from there.
Sergey Alexandrovich Kryukov 15-Aug-12 20:07pm    
The sample URL is HTTPS, that's it. I don't know how it could be WCF (it could be both, perhaps).
--SA
Abdul Quader Mamun 15-Aug-12 21:34pm    
nice Answer!
I would recommend creating a service that you communicate to for transfering the files. I beleive that you are going to have trouble doing anything from the WebService because of firewall issues.
 
Share this answer
 
Comments
Clifford Nelson 15-Aug-12 19:04pm    
It would have been real nice if the person that voted one told me why they voted 1. I was providing a suggestion, and at least if the @$%#0% would tell me why, I could learn something.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900