jasperdj Posted August 2, 2011 Posted August 2, 2011 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)
monoscout999 Posted August 2, 2011 Posted August 2, 2011 (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 August 2, 2011 by monoscout999
smartee Posted August 3, 2011 Posted August 3, 2011 InetGet may be fumbling with unexpected headers or something. Try using curl or wget.
jasperdj Posted August 3, 2011 Author Posted August 3, 2011 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 ?
wakillon Posted August 3, 2011 Posted August 3, 2011 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.7 - WIN 11 24H2 X64 - Other Examples Scripts
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