how to determine http response code


  • Good day,


    I started using PowerShell with InternetExplorer com object like


    $ie = new-object -com "InternetExplorer.Application"


    $ie.visible = $true

    $doc = $ie.document


    I could figure out, how to retrieve some data from $ie and $doc. But want I actually would like to do is to find out what the last HTTP response code was (RFC2616). The reason is that I want to write a script that checks all hyperlink targets within an html document.


    Any suggestions?


    Best regards,




    Saturday, October 02, 2010 2:41 PM