Win32OLE: Is getting MSIE HTTP status possible?

Is there any way to get the HTTP status code from IE through COM?
As in, to tell if the page displayed was HTTP status 200 OK vs.
404 Not Found or 500 Server Error, etc.?

It would appear you have to grab the OnNavigateError event of the
InternetExplorer.Application object. How to do this in Ruby with WIN32OLE –
dunno :slight_smile:

atuscodescpp.asp

rnetexplorer.asp

ateerror.asp

Chris

Unfortunately, this is new to IE 6.

And, the way you do it with Win32OLE is using the WIN32OLE_EVENT sink.

Thanks, though: this might be an option since our QA/testing is
moving to IE 6 … but I’d rather not rely on a IE 6-only feature
just yet.

– Dossy

Β·Β·Β·

On 2002.07.17, Morris, Chris chris.morris@snelling.com wrote:

Is there any way to get the HTTP status code from IE through COM?
As in, to tell if the page displayed was HTTP status 200 OK vs.
404 Not Found or 500 Server Error, etc.?

It would appear you have to grab the OnNavigateError event of the
InternetExplorer.Application object. How to do this in Ruby with WIN32OLE –
dunno :slight_smile:

–
Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
β€œHe realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)