forked from newlysoft/HttpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
25 lines (23 loc) · 763 Bytes
/
Program.cs
File metadata and controls
25 lines (23 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Net.Http;
using Microsoft.Net.Http.Client;
namespace TestClient
{
class Program
{
public static void Main(string[] args)
{
// System.Diagnostics.Debugger.Launch();
HttpClient client = new HttpClient(new ManagedHandler()
{
// ProxyAddress = new Uri("http://itgproxy:80")
});
var response = client.GetAsync(
// "https://www.myget.org/f/aspnetwebstacknightly/"
"https://packages.nuget.org/v1/Package/Download/EntityFramework/4.1.10331.0"
).Result;
Console.WriteLine(response);
// Console.WriteLine(response.Content.ReadAsStringAsync().Result);
}
}
}