title: How to copy files from a remote server that uses basic authentication
body: <p>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.</p>
  
  <p>I've searched for various methods and have found solutions like Impersonation but most involve authenticating over a local network or a Windows network.</p>
  
  <p>Is there any way i can use <code>File.Exists</code> and <code>File.Copy</code> methods on a server with this type of authentication?</p>
  
  <p>The path I have is in the following format..</p>
  
  <p><a href="https://domain.net/folder/" rel="nofollow">https://domain.net/folder/</a></p>