简体   繁体   English

与Indy一起使用代理时不要使用IE浏览器设置

[英]Do not use IE browser settings when using a proxy with Indy

At one of our customer sites, we have a Delphi 2007 application that makes a number of HTTPS requests using indy components. 在我们的一个客户站点中,我们有一个Delphi 2007应用程序,该程序使用indy组件发出许多HTTPS请求。 All requests are made using the proxy settings the client provides. 所有请求都是使用客户端提供的代理设置进行的。 For this to work, in IE we have to put the URL's in the trusted zones section. 为此,在IE中,我们必须将URL放在“受信任的区域”部分中。 After a month due to security settings the trusted zones are cleared. 一个月后,由于安全设置,将清除受信任的区域。 This means we have to re-add the URLs again to make our application work. 这意味着我们必须再次添加URL才能使我们的应用程序正常工作。

Is there a way of bypassing IE settings or using a client side HTTP stack so we do not go through the browser to make https requests? 有没有一种方法可以绕过IE设置或使用客户端HTTP堆栈,以便我们不通过浏览器发出https请求?

JD JD

Indy is the client-side HTTP stack. Indy 客户端HTTP堆栈。 It doesn't use Internet Explorer's proxy settings. 它不使用Internet Explorer的代理设置。 It uses whatever proxy settings you've set in the TIdHTTP component's proxy-related properties. 它使用您在TIdHTTP组件的代理相关属性中设置的任何代理设置。 If you don't want to use those settings, then don't set them. 如果您不想使用这些设置,请不要进行设置。

Furthermore, I'm pretty sure the "trusted zone" has nothing to do with this. 此外,我很确定“受信任的区域”与此无关。 It controls what Internet Explorer allows Web pages to do, such as run scripts and load ActiveX controls. 它控制Internet Explorer允许网页执行的操作,例如运行脚本和加载ActiveX控件。 Indy never loads, displays, or executes anything. Indy永远不会加载,显示或执行任何操作。 All it does is download. 它所做的就是下载。 Internet Explorer's settings should have no bearing on your program's ability to connect to whatever sites you wish. Internet Explorer的设置应与程序连接到所需站点的能力无关。

IE proxy settings are handled by the Internet options -> Connection -> Lan settings -> Proxy server configuration. IE代理设置由Internet选项->连接-> Lan设置->代理服务器配置处理。 Here you can tell which addresses should bypass a proxy server, it's not the security tab controlling that, it controls what a site is allowed to do within IE , and zones are used by IE only (and applications using the Web Browser control). 在这里,您可以确定哪些地址应绕过代理服务器,而不是由安全性选项卡控制,它控制着IE中允许站点执行的操作,并且区域仅由IE(和使用Web浏览器控件的应用程序)使用。 Anyway, Indy does not use them automatically, you have to set a proxy explicitly. 无论如何,Indy不会自动使用它们,您必须显式设置代理。 Do you use the web browser control? 您是否使用网络浏览器控件?

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

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