Tutorial :Easiest way to communicate with HTTP outside of ASP.NET?


I have a winform app and i would like to listen to a specific port and be able to visit the app through a browser. I know how to use HttpRequest and HttpResponse in asp.net project. But is there a way to use them in a winform app? or a variant of them? Currently i am using TcpListener and i need to write out my response and parse the request (i only need specific information, it was trivial). Whats the easiest way to communicate with HTTP in a winform app?




yes, you just have to add the following reference in your references.

System.Web  System.Net  

winform does not add System.Web in its references but you can actually add this. I've done this a lot of times.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »