inet control and "location:" headers 
Author Message
 inet control and "location:" headers

Hi all,

Can anyone help? I'm using the Inet control to download some web pages
from a site. This isn't the problem.

The problem is that sometimes these pages have "Location: " in their
header so the inet control (quite rightly) trundles off to that

This is great, except that I am unable to find out where the control
has gone. For example:


may have:

Location: http://www.*-*-*.com/

in its header. So the inet control goes off to After
finishing, if you do:

debug.print inet1.URL

you get


which, of course, isn't right because you're at the latter URL now.

If you also do:


you get the headers from I've even tried requesting this
header in the state_changed event to look out for a "location:" line
and intercept it before inet goes off to that address, but you just
get an error message.

Does anyone have any suggestions?



Sat, 11 Sep 2004 03:10:37 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Set Inet = CreateObject("InetCtls.Inet.1")

2. Set Inet = CreateObject("InetCtls.Inet.1")

3. Inet control "POST"

4. INET control "does not support frames"

5. Inet Control and "dir"-command

6. inet control "get"

7. Using "POST" method in INET control

8. Execute "CD subdir" with Inet-Control

9. IE5 location.reload() "type mismatch error", but works under IE6

10. Change "My Documents" Shell Folder location

11. Set the "Start In" Location

12. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*


Powered by phpBB® Forum Software