I have a regular C# (console) app,and I want to send a HTTP request to a specified URL and get back a response. I would have guessed that the object to use would be HttpRequest, but I can’t find a suitable constructor for that object, and MSDN documentation all assumes you’ve already got a HttpContext from which to get your Request. In my case I don’t – and HttpContext also doesn’t have a constructor that is intuitively usable – so what is the correct way of doing this?
I have a regular C# (console) app,and I want to send a HTTP request
Share
may be this is what you are looking for.