This may seem like a simple question but I'm writing a console application that needs to access files on a remote server. I've got a URL, a U/N and a P/W. The URL protocol is https of course and I do not have the option of using ftp or sftp. When I access the remote path with a browser, I am asked for a u/n and p/w so it appears to be basic file authentication.
I've searched for various methods and have found solutions like Impersonation but most involve authenticating over a local network or a Windows network.
Is there any way i can use File.Exists
and File.Copy
methods on a server with this type of authentication?
The path I have is in the following format..