Post
by mightycpa » Tue Nov 11, 2008 12:49 am
Hi,
Thanks, ME_AGAIN. I didn't mean to steal your identity at the beginning of this post.
I guess I didn't explain myself well. The code I included originally opens a browser window, and navigates to whatever page I may direct it to. Eventually, it lands on a target page.
At this point, I've got an open browser window with html in it.
The question is, how can I get this HTML into a file on my hard drive?
Of course, if there is a different way to implement IE_Navigate so that it redirects the GET response to a file, that would be fine too.
Now, ME_AGAIN has suggested that I use the HTTP_REQUEST function. Ordinarily, I think that would be a great suggestion. But I'm afraid of failure because the page I seek is behind a username/password scheme that redirects to an interim page. Here are the steps required when operating a browser.
Navigate to start
POST
Redirect
GET request to target
HTTP_REQUEST, at least from what I read in the documentation, doesn't seem to support multiple page requests, rather it is a single page request function. So it seems like HTTP_REQUEST could handle logging in, but not the GET request after, because it would not appear to be logged in...whatever cookies or session variables that get set after login aren't mentioned, and I'm doubtful they persist.
All that said, I'm going to try it, because ME_AGAIN is a proven winner when it comes to this System Scheduler stuff, and it would not be smart to just discard this advice.
So, if you have any suggestions about how to stay logged in after an HTTP_REQUEST, I'm all ears.
Tx,
George
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey