Click to See Complete Forum and Search --> : Error in webbrowser (HTTP 404)


hooger
August 6th, 2001, 08:54 AM
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

cksiow
August 6th, 2001, 09:24 AM
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