title: C# - XML read from https link + popup username/pw box
body: <p>Greetings</p>
  
  <p>I'm trying to get an xml file from a website which requires me to fill in a username and API key.</p>
  
  <p>Example:</p>
  
  <pre><code>public void GetTournaments(string userName, string apiKey, string tournamentName)
  {
   string getXMLAdress = "https://" + userName + ":" + apiKey + "@challonge.com/api/tournaments/" + tournamentName + "/participants.xml";
   XmlDocument tournamentsXML = new XmlDocument();
   tournamentsXML.Load(getXMLAdress);
  }
  </code></pre>
  
  <p>The API on the website shows that you only need this information.. however it always returns a  401 that I have no access. Now I noticed when I put this in my browser I still had to fill in my Username and password as well. When using the above URL it shows a popup box where you can fill in your username/password.</p>
  
  <p>I could always let users download the files themselves but that would be kind of an hassle. So I'm wondering if there is an alternative way or if I can fill in the popup box through C#.</p>
  
  <p>Thank you in advance.</p>