> Hi,
>
> I'm using Ruby, Win32OLE, Microsoft Internet Explorer and Test::Unit
> to automate web testing (hopefully to eliminate any need for our team
> to use WinRunner + WebTest for most of our testing).

>
> 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.?


Could you pass all requests and responses through a proxy filter that simply
records what it sees, and then passes everything on?  You would get all the
raw headers and such before IE decides to do anything with the response.


James