Here's an example of how to perform an HTTP request in C# using HttpWebRequest
and HttpWebResponse
classes:
main.cs418 chars15 lines
Alternatively, you can use the HttpClient
class introduced in .NET Framework 4.5 that simplifies the process:
main.cs259 chars8 lines
gistlibby LogSnag