cougasoft
Sep 22nd, 2000, 08:27 PM
Hello, I was wondering if it is at all possible to get the headers from a loaded url using the WebBrowser control? I am writing a program in vb6 and basically, although the control lets you know that the document is complete etc... I want to know if the page existed, whether it was an internal server error and so on.
At the moment if the file I am attempting to load doesn't exist, the rest of the program becomes useless because I can't check the header, or check whatever it is I need to check to see if it was a 404, 200 etc... It would be nice to say send a message box and handle the error accordingly.
I am really struggling here, read tons of stuff but can't seem to put my finger on how to get the headers from a loaded document. Any help would be really appreciated!
-Paul
At the moment if the file I am attempting to load doesn't exist, the rest of the program becomes useless because I can't check the header, or check whatever it is I need to check to see if it was a 404, 200 etc... It would be nice to say send a message box and handle the error accordingly.
I am really struggling here, read tons of stuff but can't seem to put my finger on how to get the headers from a loaded document. Any help would be really appreciated!
-Paul