Sign in to follow this  
Followers 0
jasperdj

Inetget not downloading .mp3 file

5 posts in this topic

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)

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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.0WIN 8.1 X64 - Other Example Scripts

Share this post


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
Sign in to follow this  
Followers 0