Jump to content

Recommended Posts

Posted

I've been working on an automatic music downloader, here is what i got (download part)

local $test = inetget("http://dc217.4shared.com/img/720645758/904515b9/dlink__2Fdownload_2F3muR_5FKBf_3Ftsid_3D20110802-22320-7cb1c6e0/preview.mp3","test.mp3", 0, 1)

Do
    Sleep(250)
Until InetGetInfo($test, 2)    ; download complete?
Local $nBytes = InetGetInfo($test, 0)
InetClose($test)   
MsgBox(0, "", "Bytes read: " & $nBytes)

But it somehow it won't download this file ? (I use IE9 btw)

Posted (edited)

I don`t have any idea what is wrong InetGet() is setting @error = 13 and the help file doesn`t say anything about that. also InetGetSize() set the @error = 13.

Edited by monoscout999
Posted

InetGet may be fumbling with unexpected headers or something. Try using curl or wget.

I've been searching around, but could not get a decent documentation on Wget or Curl.

Could you shoot me with some information/example ?

Posted

I've been searching around, but could not get a decent documentation on Wget or Curl.

Could you shoot me with some information/example ?

http://curl.haxx.se/

http://www.gnu.org/software/wget/

AutoIt 3.3.18.0 X86 - SciTE 5.5.7WIN 11 24H2 X64 - Other Examples Scripts

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
×
×
  • Create New...