HttpListener - how do I send a WebException HTTP 304 "Not Modified" error back to browser?

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-04-09T22:08:12Z Indexed on 2010/04/09 22:13 UTC
Read the original article Hit count: 461

Hi,

How do I mimic a WebException 304 error back to browser if I am using HttpListener?

That is I have received a request to my HttpListener, and then obtained the HttpListenerContext, then from this point how would I mimic/arrange for a HTTP "304 Not Modified" response to be effectively sent back to the browser via the HttpListenerContext.response?

thanks

© Stack Overflow or respective owner

Related posts about httplistener

Related posts about httplistenerrequest