Skip to content
⌘ NSIS Forum Archive

inetc problem with one URL

4 posts

vogliadicane#

inetc problem with one URL

Hi everybody (my first post here 🙂 )

I was a lurker up to now and found most answers in this forum but not this time.

inetc download doesn´t work for me with one URL.
my code is:

inetc::get "http://www.foobar2000.org/getcomponent/f804b3d3834e96355a501d92334ec8a1/00efa1b008ad3d8bf9de6790a8cac868/foo_playcount.zip" "$PLUGINSDIR\STAT.zip" /end
Pop $0 ;Get the return value

MessageBox MB_OK "Download status: $0"


The download starts, status is "OK" but the file is only 4kb (normally 82kb) and is corrupt (can´t be extracted).

Using this URL in Firefox or so works without a problem.

I had used the built-in NSISdl before and got the error "server does not specify content length", that´s why I switched to inetc, and maybe that´s the problem here, too.

Hope anybody can help, because here I don´t know what to do more...

btw. have tried InetLoad also without success.
Takhir#
Your server not specifies Content-length header for fixed-size file and not sends Transfer-encoding: chunked. Probably situation is confusing for WinInet.dll
And I could not download file using FF 3.6 - default foobar2000 page appears. And small file content which I could download using Inetc looked like http header, not zip file.
vogliadicane#
hmm, strange other URLs from this site behave the same way...

so, no chance to solve this?
vogliadicane#
found out, what it is. The URL changes every day and mine was from yesterday. If I use the current one it works (at least today 😉 )

so I have to extract the URL from the html first, not nice.

Thanks for help and sorry for inconveniences.