绕过它利用tcpclient代理 [英] Bypass the proxy using TcpClient
问题描述
我想写一个本地代理应用程序。我知道如何代理应用程序在理论上工作。
我已经做了处理传入的连接有关的一切。但问题是,我应该怎么发出请求的客户端请求指定的URL。当我尝试创建的TcpClient
来指定的URL和端口的连接,它抛出以下异常:
I'm trying to write a local proxy application. I know how proxy applications work in theory.
I've done everything related to handle incoming connections. But the problem is how should I send request which client requested to specified Url. When I try to create a connection with TcpClient
to specified Url and port, it throws following exception :
没有这样的主机被称为
编辑:我想我应该绕过代理的东西像Firefox是做即使系统代理设置。
Edit : I think I should bypass the proxy something like FireFox is doing even system proxy set.
任何想法会有所帮助。
在此先感谢
Any idea will be helpful. Thanks in advance.
推荐答案
这些链接可能会有所帮助:
These links might be of help:
的 http://alandean.blogspot.co.uk/2010/06/routing-tcpclient-http-requests-through.html
这篇关于绕过它利用tcpclient代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!