title: System.UriFormatException occurred in system.dll
body: <p>I'm making a .net application in visual studio that uses get requests to find information on the runescape wiki. When I try to </p>
  
  <pre><code>public string GET(string url)
      {
          WebRequest wrGetURL;
          wrGetURL = WebRequest.Create(url);
          wrGetURL.Proxy = WebProxy.GetDefaultProxy();
          Stream responseStream;
          responseStream = wrGetURL.GetResponse().GetResponseStream();
  
          StreamReader objReader = new StreamReader(responseStream);
  
          string sLine = "";
          int i = 0;
          string response = "";
  
          while (sLine != null)
          {
              i++;
              sLine = objReader.ReadLine();
              if (sLine != null)
                  response = response + sLine;
          }
  
          return response;
      }
  </code></pre>
  
  <p>When I run the following code:</p>
  
  <pre><code>string response = GET("runescape.wikia.com/api/v1/Articles/AsSimpleJson?id=4115");
  </code></pre>
  
  <p>I get the error: An unhandled exception of type 'System.UriFormatException' occurred in System.dll</p>
  
  <p>Additional information: Invalid URI: The format of the URI could not be determined.</p>
  
  <p>Does anybody have an idea of what to do about this?</p>