检查 .net 中的代理类型
谁能帮我编写检查 .net 中代理类型的代码?所以我将代理信息放入文本框中,它将返回代理类型
,大约有 4-5 种类型,
Transparent, Anonymous, Elite, Anonymouse + Elite
它与返回的标头有关,这里是一些标头
HTTP_X_FORWARDED_FOR
HTTP_VIA
编辑,
大约有 5 类代理,
UNKNOWN_PROXY
DEAD_PROXY
HTTP_PROXY
SOCKS4_PROXY
SOCKS5_PROXY
我感兴趣其中是 HTTP_PROXY。 当您通过代理向谷歌或任何网站发出请求时,据我所知,返回的标头也会返回正在使用的代理类型
can anyone help me with code that check a proxy type in .net? so it i put a proxy information in a textbox, it will return the proxy type
there are about 4-5 types
Transparent, Anonymous, Elite, Anonymouse + Elite
it has something to do with the headers returned, here are some headers
HTTP_X_FORWARDED_FOR
HTTP_VIA
EDIT
there are about 5 categories of proxies
UNKNOWN_PROXY
DEAD_PROXY
HTTP_PROXY
SOCKS4_PROXY
SOCKS5_PROXY
The one am interested in is HTTP_PROXY.
when you make a request via a proxy to google or any site, the headers returned somehow as i have heard also returns the type of proxy that is being used
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你必须设置一个网络服务器(可通过代理服务器访问)
您的 winform 应用程序通过代理向部署在该 Web 服务器上的 Web 应用程序发送 http 请求
真正的请求将由代理服务器发送到您的网络服务器,您可以检查标头并查看您找到的 IP 是您的客户端还是代理服务器,然后发回代理的类型。
i think you must setup a webserver (accessible by the proxy server)
your winform application send a http request to an web application deployed on that webserver via the proxy
the true request to your webserver will be send by the proxy server, you can check the header and see the IP you found is of your client or the proxy server and send back the type of the proxy.