在 Indy 中使用代理时不要使用 IE 浏览器设置
在我们的一个客户站点,我们有一个 Delphi 2007 应用程序,它使用 indy 组件发出许多 HTTPS 请求。所有请求都是使用客户端提供的代理设置发出的。 为此,在 IE 中,我们必须将 URL 放入受信任区域部分。一个月后,由于安全设置,受信任区域将被清除。这意味着我们必须再次重新添加 URL 才能使我们的应用程序正常工作。
有没有办法绕过 IE 设置或使用客户端 HTTP 堆栈,这样我们就不会通过浏览器发出 https 请求?
京东
At one of our customer sites, we have a Delphi 2007 application that makes a number of HTTPS requests using indy components. 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. 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.
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?
JD
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Indy 是客户端 HTTP 堆栈。它不使用 Internet Explorer 的代理设置。它使用您在
TIdHTTP
组件的代理相关属性中设置的任何代理设置。如果您不想使用这些设置,请不要设置它们。此外,我很确定“信任区域”与此无关。它控制 Internet Explorer 允许网页执行的操作,例如运行脚本和加载 ActiveX 控件。 Indy 从不加载、显示或执行任何东西。它所做的只是下载。 Internet Explorer 的设置不应影响您的程序连接到您想要的任何网站的能力。
Indy is the client-side HTTP stack. It doesn't use Internet Explorer's proxy settings. It uses whatever proxy settings you've set in the
TIdHTTP
component's proxy-related properties. 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. Indy never loads, displays, or executes anything. 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.
IE 代理设置由 Internet 选项 -> 处理。连接->局域网设置->代理服务器配置。在这里你可以知道哪些地址应该绕过代理服务器,它不是由安全选项卡控制的,它控制着网站在 IE 中允许执行的操作,并且区域仅由 IE 使用(以及使用Web 浏览器控件)。不管怎样,Indy 不会自动使用它们,你必须明确设置一个代理。您使用网络浏览器控件吗?
IE proxy settings are handled by the Internet options -> Connection -> Lan settings -> Proxy server configuration. 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). Anyway, Indy does not use them automatically, you have to set a proxy explicitly. Do you use the web browser control?