简体   繁体   English

防火墙导致Titanium Web代理无法更改请求URL

[英]Firewall causes Titanium web proxy to fail to change request url

When trying to change the request URL on an Https request to a site that is blocked by a firewall(example.com in this example), the request gets an error 尝试将Https请求上的请求URL更改为被防火墙阻止的站点(本示例中为example.com)时,请求会出错

"Error occured whilst handling session request: Could not establish connection to www.example.com". “处理会话请求时出错:无法与www.example.com建立连接”。

I had thought that it was the ClientHelloInfo that was causing the problem but even if I set it to clear with e.HttpClient.ConnectRequest.ClientHelloInfo.Extensions.Clear() it still fails. 我原以为导致问题的是ClientHelloInfo,但即使我用e.HttpClient.ConnectRequest.ClientHelloInfo.Extensions.Clear()其设置为清除它仍然失败。

Also, if trying to do the same thing with an Http request it works. 此外,如果尝试使用Http请求执行相同的操作,它也可以。

The code that changes the url request. 更改url请求的代码。

e.HttpClient.Request.RequestUri = new Uri("https://someotheresite.com");
e.HttpClient.Request.Host = new Uri("https://someotheresite.com").Host;

Thanks in advance. 提前致谢。

Edit: It is the clienthello causing it, is there anyway to stop it from sending or forward it to another place? 编辑:导致它的是clienthello,无论如何阻止它发送或转发到另一个地方?

This problem has been fixed. 此问题已得到解决。 You must update titanium proxy to Titanium.Web.Proxy.3.0.892-beta. 您必须将钛代理更新为Titanium.Web.Proxy.3.0.892-beta。

https://github.com/justcoding121/Titanium-Web-Proxy/issues/543 https://github.com/justcoding121/Titanium-Web-Proxy/issues/543

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM