Jump to content

Got a problem Downloading .zip files using Inetget


Recommended Posts

Hello all, I am trying to download an .zip file using Inetget() but what I get is a corrupted one, I got this:

[Window Title]
Compressed (zipped) Folders Error

[Content]
Windows cannot open the folder.

The Compressed (zipped) Folder 'C:\Users\GHIE\Desktop\folder.zip' is invalid.

[OK]

This is the code I am using:

InetGet("http://somesite.com/folder.zip", "C:\ProgramData\Folder\folder.zip")           ; I tried $INET_FORCERELOAD, but still not                                                                                          working

NOTE: the I used the real url in chrome and internet explorer, it is working (good files, not corrupt)

Link to post
Share on other sites
  • Developers

That likely means that the link "http://somesite.com/folder.zip" is not pointing to the zip file directly but maybe some redirect to it.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...