i want to write a simple proxy. I don't know what a proxy is. Someone please explain and give a simple http proxy code ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Look at the following links
Proxy is a software that is between the client and the server. For example the web browser requests for a web page the requests passes to the proxy then the proxy request the page and sends it back to the web browser.
How to create a simple proxy in C#?
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket_members(v=VS.90).aspx
http://msdn.microsoft.com/en-us/library/system.net.sockets(v=VS.90).aspx
回答2:
Read RFC2068
and learn about socket programming in C#.
回答3:
I recommend the Wikipedia article for a good overview of the proxy pattern. If you're talking about proxy servers then Wikipedia is still your friend - a proxy server is a special case of the pattern.