Jump to content
Sign in to follow this  
GoogleDude

inetget to download file via php script?

Recommended Posts

GoogleDude

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

Share this post


Link to post
Share on other sites
Richard Robertson

That php file probably presents a redirect or a javascript file loader.

Share this post


Link to post
Share on other sites
GoogleDude

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

Share this post


Link to post
Share on other sites
Richard Robertson

As far as I know, InetGet has no support for following redirections. I'm not sure of an easy way to get it.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×