From: "Hal E. Fulton" Date: 2002-07-17T07:05:21+09:00 Subject: Re: Win32OLE: Is getting MSIE HTTP status possible? ----- Original Message ----- From: "John" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Tuesday, July 16, 2002 4:46 PM Subject: Re: Win32OLE: Is getting MSIE HTTP status possible? [snip] > > I know how to perform an HTTP request and get the status. I know > > how to automate and control IE via COM. What I don't know is how > > to get the status from IE via COM. > > > > I don't want to hit every URL twice -- once to get the status and > > a second time to test via automated IE. > > > > -- Dossy > I would have assumed that you would use vbscript/jscript from windows script > host before Ruby. It doesn't make a lot of difference. I sure would prefer > to use Ruby where possible :-). > > I don't go to these groups, but from their titles they would be a good place > to start: > microsoft.public.scripting.vbscript > microsoft.public.inetexplorer.scripting > > I don't think that you can get the status code from the IE COM object. That > is why I gave a different sample. I assume you want the IE object model > which is why you would then need to do 2 requests. > > If you find a way to do this at a different group would you mind responding > to this thread with the answer? Hmmm. I can't answer the question, but I can re-think it. If I'm off-base here, please let me know. Instead of asking "Why use Ruby?" let's ask "Why use IE?" (Not to bash Microsoft (not to bash those who bash Microsoft.)) Is it because you are manually examining each page in addition to automated testing? Could you just hit the URL and retrieve the status? Other brainstorming: Would ActiveScriptRuby be of any help here? You can run Ruby within IE that way (as you do Javascript). Also: Doesn't every COM object have some kind of reflection API? (Not sure -- I'm not a COMmie.) Hal