2

我尝试在我的 Delphi 应用程序中使用 TIEHTTP 组件,但遇到了一些问题。我的应用程序在带有 IE8 的 XP 中运行良好,但在带有 IE9 的 Windows 7 中无法运行(它返回一个页面但没有登录)。

我试过 Delphi 7 d2007 和 D 2009 - 同样的问题。

我搜索了这个问题并找到了解决方案,但它不起作用!

http://www.myfxboard.com/tiehttp/discussion?id=4273

所以我不知道该怎么办!请帮助如何在 IE9 中解决此问题!

//iehttp1.http_agent_string := 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6';
//iehttp1.content_type := 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ;

iehttp1.RequestMethod := 'POST';

iehttp1.ExecuteURL('http://www.example.com/act=login&login=[user]&password=[pass]');

memo1.Text  := iehttp1.result_sl.Text;
4

1 回答 1

2

Internet Explorer 不支持安全更新 832894 的 URL 中的用户名和密码,详细信息如下:

http://support.microsoft.com/kb/834489

我对此组件没有任何经验,但尝试使用用户名和密码属性:

iehttp1.username := 'user1';
iehttp1.password := '*****';

示例页面所述

更新

我错了,正如 mjn 在评论中指出的那样,这与您的情况无关,IE 更改适用于像 user:pass@example.com 这样的 URL

于 2012-04-26T21:53:38.880 回答