Jump to content

InetGet/InetGetSize only seeing half of file


 Share

Recommended Posts

filedelete(@tempdir & "\player.exe")
InetGet("http://www.shrum.net/code/player/player.exe", @tempdir & "\player.exe", 1,1)
While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend
ShellExecute(@tempdir)

If you go to the website and click in the binary link , any browser will report the download size as 438k. InetGetSize/InetGet keeps reporting 204 ergo the file is not all there (the file in the temp folder is only 204k and should be 438k)

Any ideas?

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

That's 204 bytes not kb.

I think the issue you are having is due to the site's structure and php. I can not seem to script the download of the file unless I use _IEcreate and browse through like a user would.

The link to the file is a direct one, not one delivered thru a php page so php has nothing to do with it.

http://www.shrum.net/code/player/player.exe

As for the site structure? Server + InetGet issues? Server is running Centos 5.2.

I'm still baffled.

EDIT: Whoooo....that's different. I just tried the link and got redirected to my files subdomain instead of it asking me to download the exe. I need to investigate that...I think this is turning out to be a server issue.

Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...