Is it possible to call an http url from a .net console application? can anyone give an idea.?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
Yes, its possible. Use the WebClient class. See a tutorial here http://www.dotnetperls.com/webclient
Here is a nice example if you are trying to fetch HTML from a web page using HTTP.
UPDATE: As you have posted in comment that only thing you expect in response is a string would be good to use WebClient as Chris Fulstow says in his answer.