I have a web site "http://foo.com" that performs a serverside redirect to "http://foo.com/foo/foo/". I am using the ITC to navigate to the site and I want to retrieve the new URL from the site (Inet.URL returns "http://foo.com" after navigation is complete).
I was assuming that this data may be found in the header and sometimes that is case but the ITC seems to perform sporadically. Sometimes it skips a header and sometimes it returns it. Here is the code, really simple:
You can use Case 8 or 12, but if you use 12 then you never get a Location: Header.
Any ideas or work arounds?Code:Select Case State Case 8 Debug.Print "Header: " & vbCrLf & inetTrans.GetHeader End Select


Reply With Quote