jasperdj Posted August 2, 2011 Share 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) Link to comment Share on other sites More sharing options...
monoscout999 Posted August 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
smartee Posted August 3, 2011 Share Posted August 3, 2011 InetGet may be fumbling with unexpected headers or something. Try using curl or wget. Link to comment Share on other sites More sharing options...
jasperdj Posted August 3, 2011 Author Share 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 ? Link to comment Share on other sites More sharing options...
wakillon Posted August 3, 2011 Share 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.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
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