首页  编辑  

检查网页是否是安全连接?

Tags: /超级猛料/OS.操作系统/IE.扩展/TWebBrowser/   Date Created:

...check if a page in TWebbrowser is secure (SSL)?

procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject;

 const pDisp: IDispatch; var URL: OleVariant);

begin

 if Webbrowser1.Oleobject.Document.Location.Protocol = 'https:' then

   label1.Caption := 'Sichere Verbindung'

 else

   label1.Caption := 'Unsichere Verbindung'

end;