绕过它利用tcpclient代理 [英] Bypass the proxy using TcpClient

查看:97
本文介绍了绕过它利用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆