Wednesday, 29 February 2012

C# HttpListener

Setting up your own HttpListener can be useful, particularly when running a Windows service or perhaps unit testing your RESTful services.

Here is a little console app project that serves to remind how to setup the HttpListener and also how to interact with the WebRequest and WebResponse objects.

HttpListenerExample

Source code:  http://stevenhollidge.com/blog-source-code/HttpListenerExample.zip

No comments:

Post a Comment