|
-
August 6th, 2001, 08:54 AM
#1
Error in webbrowser (HTTP 404)
Hi!
I have a WebBrowser control of which I want to know if the page has been loaded correctly or if an error occured (like HTTP 404) and what is this error.
I know that I can use NavigateError() event with Explorer 6 but I can't demand to all users to download Explorer 6.
So, I do:
...
If (Left$(pDisp.Document.Title, 8) = "HTTP 404") Then
Error = "Navigation was not successful"
...
But it causes a problem because I can have users with many different languages systems and I can't identify all the languages used.
Does someone knows another way to reach this error by an error number or anything else?
Thanks and I wait for your advices!!!
Melanie
-
August 6th, 2001, 09:24 AM
#2
Re: Error in webbrowser (HTTP 404)
I am not sure whether this will help. I have program a HTTP request using winsock and analyse the response of the header. refer http://vblib.virtualave.net for vbHttp class. alternatively, you can use INet control and execute HEAD command.
HTH
cksiow
http://vblib.virtualave.net - share our codes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|