Archive: Downloading with server-side redirects


Downloading with server-side redirects
I'm using the NSISDLSmooth plugin I found in the NSIS Archive, and I'm having a problem with it not... compiling.

The file location is http://d8uv.com/phoenix/phoenix-lgb-win32.zip, which does a server-side redirect to http://komodo.mozilla.org/pub/phoeni...enix-win32.zip.

Basically, I want NSIS to download and extract from the first location. However, for some reason, it yells at me for attempting this. The code, when pointed at the second location works, but in order to have this project do what I need to do, I need the redirect there.


For example:
Trying to download "http://www.bla.com/file.php?=file3"
where it redirects to "http://www.bla.com/download/me.zip"

I think maybe the plugin only accept "direct" urls.
Have you try the NSISdl?
For extract the zip you can use the ZipDLL found in Nsis Archive too.

I


Okay, I modifed the plugin but i didnt change the code, just the way it behaves in a GUI since. I just tested the url and it works just fine.


nsisdlSmooth::download "http://d8uv.com/phoenix/phoenix-lgb-win32.zip" "phoenix.zip"

Nathan Purciful

if you are using ?file=bleh.zip, just have your php script ouput bleh.zip rather than forwarding.