Eric Choy
Dec 11th, 2000, 01:07 PM
The story is my VB program have to automatically connected to the web without a browser, go to a login page, login the site with 'post' method, and download some txt files use with http protocol. I know how to 'post' the login name and password to the login page using the 'wininet.dll' control and get the next html page. I also know how to download files with specific URL, BUT I don't know how to get the URL after I logged in, I can get the html headers and content of the page but not the URL! Since after login the site will divert to a random URL like:
http://www.thesite.com/session/:520:6991/index.html
when I want to download the file 'abc.txt', I have to use the URL "http://www.thesite.com/session/:520:6991/abc.txt",
the number "520" and "6991" is random for each session connected, so I have to get the URL after login. Any ideas?
http://www.thesite.com/session/:520:6991/index.html
when I want to download the file 'abc.txt', I have to use the URL "http://www.thesite.com/session/:520:6991/abc.txt",
the number "520" and "6991" is random for each session connected, so I have to get the URL after login. Any ideas?