GoogleDude Posted January 6, 2009 Share Posted January 6, 2009 I tried using inetget() to download a file from a url that "If logged into" I should be presented with a typical file download dialog box. but instead of getting presented with the file I am expecting "file.zip" I get "index.php". using some samples from help and other posts on this forum I am able to automate the loging into the webpage via autoit but I dont think Inetget() is trying to download the resulted output of the phpscript, but instead the main script itsself. Hope that makes sense. Is there a better function to use when trying to download a files this way? Thanks, GoogleDude Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 6, 2009 Share Posted January 6, 2009 That php file probably presents a redirect or a javascript file loader. Link to comment Share on other sites More sharing options...
GoogleDude Posted January 6, 2009 Author Share Posted January 6, 2009 I would agree with you. But is there anyway around it? I just found WinHTTP. Not sure if that will help or not? I can get the correct file if I use ShellExecuteWait() with the full url. but then I have to manually/scriptomaticly automate the mouse clicks which I was trying to avoid. Thanks, GoogleDude Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 6, 2009 Share Posted January 6, 2009 As far as I know, InetGet has no support for following redirections. I'm not sure of an easy way to get it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now