My Assistant
![]() ![]() |
|
|
Oct 15 2009, 02:26 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 171 |
I was running the below code and it would open the site ask me for m certificate and continue doing what it needs to.
However, its now opening the site but spitting out the error: The page requires a client certificate and its not bringing up the window anymore to slect the certificate, refreshing page does nothing But if i copy the address, close the window, reopen window, paste addess it opens just fine asking for my certificate. Any idea what might be going on and to stop it. ok, have the following code: CODE Dim sSearchString As String Dim dtStartTime As Date ' Start Time Dim dtCurrentTime As Date ' Current Time Dim iMaxWaitTime As Integer ' Maximum waiting time (in Secs) Dim sDocText ' WebPage as Text Dim sDocHTML ' WebPage as HTML On Error GoTo Err_Clearer sSearchString = "http://wesite needing certificate" Init_IE dtStartTime = Now iMaxWaitTime = 60 'Seconds to be waited ieBrowser.Navigate2 (sSearchString) ieBrowser.Visible = True Do While ieBrowser.ReadyState <> READYSTATE_COMPLETE 'wait for page to load DoEvents dtCurrentTime = Now If DateDiff("s", dtStartTime, dtCurrentTime) > iMaxWaitTime Then sReturn = "TimeOut": Exit Sub Loop sDocHTML = ieBrowser.Document.documentElement.innerhtml CODE Sub Init_IE()
On Error GoTo ReInit_IE Set ieBrowser = GetObject(, "InternetExplorer.Application") Exit Sub ReInit_IE: Set ieBrowser = CreateObject("internetexplorer.application") 'Application.Wait DateAdd("n", 1, Now) ' Wait for one/Two minutes to Start the Browser End Sub |
|
|
|
Oct 15 2009, 02:45 PM
Post
#2
|
|
|
UtterAccess Addict Posts: 171 |
FIXD.. All had to be done was clearing the SSL Cache
|
|
|
|
Oct 15 2009, 03:11 PM
Post
#3
|
|
|
UtterAccess Guru Posts: 726 From: Maine, US |
That [censored] cache... (IMG:http://www.utteraccess.com/forum/style_emoticons/default/sad.gif) glad you got it working!
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th May 2013 - 12:13 AM |