Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

HTTP request in C# windows application?

How do I make a HTTP request from a C# windows application?

In Delphi, I just drop an Indy HTTP object on a form, call the Get method, and it returns the HTML (or other web page data) as a string.

How do I do this in C#?

Is there a simple source code example?

Thank you!

John Dwight
Monday, June 09, 2003

Look into the HttpWebRequest, and by implication the WebRequest.Create method. This should do something similar. Plenty of info in the documentation!

Andrew Cherry
Monday, June 09, 2003

*  Recent Topics

*  Fog Creek Home