Jump to content

Inetget not downloading .mp3 file


Recommended Posts

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

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

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...