How do I create simple web proxy server using C#?

I have requirement of having proxy server where request from browser will be forwarded to my custom proxy server. Afterwards Proxy server will read request from client and talk to requested resource using some thing like this --

HttpWebRequest request =(HttpWebRequest)WebRequest.Create ("http://www.google.com"); HttpWebResponse response = (HttpWebResponse)request.GetResponse();

then once I have response back in response object write returned HTML to browser , at this point I am stuck and do not know how to write information to browser ?

Can someone please help ???

链接地址: http://www.djcxy.com/p/45932.html

上一篇: 如何使用RichTextBox显示html内容?

下一篇: 如何使用C#创建简单的Web代理服务器?