Can a program that controls IE detect if a HTTP 30x code is encountered?
        Posted  
        
            by hillu
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by hillu
        
        
        
        Published on 2010-04-23T09:40:45Z
        Indexed on 
            2010/04/23
            9:43 UTC
        
        
        Read the original article
        Hit count: 477
        
I am trying to control an InternetExplorer.Application via the COM interface, using Perl, Win32::OLE, and information from MSDN. My goal is to get as good an idea as possible about what IE is doing. (Related to this question.)
IE uses events to notify my program when it has finished various stages of processing a certain URL (NavigateComplete2, DownloadComplete DocumentComplete). It can also tell my program about various errors it encounters (NavigateError2). I consider that part of my problem solved well enough.
I would also like to be able to reliably detect if IE is redirected by the server. Primarily, I'm concerned about HTTP 30x status codes. Is there a way to do this, either with COM automation or via another route?
© Stack Overflow or respective owner