Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I try to download a big file on unstable connection/server (XCode 4) Google chrome simply "stops" downloading on first network error so I have a first 1-2-3 gigabytes of file and chrome thinks that download is finished.

Unfortunately, I need to download an entire file, so I need a more advanced download tool like a wget. But there comes a problem: most URL's currently on the web is not a direct URL but multiple "redicrect" pages that utilize complex javascript in order to generate next url and redirect browser to it. Chrome handles such things ok, but if I try to supply such URL to wget it will download some "intermediate" page as a file - not a file itself but an HTML page with complex redirect javascript.

is it any way to get a direct URL from chrome or to somehow discover it so I can use it with wget? Maybe it's some avanced download manager integrated in chrome that I just need to install? I use MacOS X 10.6.6 and latest Google chrome.

share|improve this question
    
Just a shot into the blue: Google for "download manager mac os" and try some of the programs? –  Darokthar Mar 12 '11 at 22:28
    
Try another browser. Even though Safari and Chrome have the same render, the download managers are different. –  tobylane Mar 12 '11 at 22:40
add comment

2 Answers

up vote 1 down vote accepted

The actual path to the downloaded file is stored in the file's metadata when downloading using Safari. Open the file's Get Info dialog to see it. enter image description here

I'm not sure if it also applies to Chrome.

share|improve this answer
    
Yes, the path is here but trying to download it with wget raises a "403 forbidden" error :(. It seems that chrome supplies some additional info to HTTP GET request :( –  Eye of Hell Mar 12 '11 at 22:24
    
@Eye It's probably a dynamic download location where the web site somehow authenticates you, e.g. through a login. In that case, there's little (and nothing I know) you can do about that. –  Daniel Beck Mar 12 '11 at 22:52
    
I have tried to download XCode 4 using Lynx, but have no success :(. Apple developers website navigation is composed of subtle javascript code and redirections so lynx simply can't see a beautiful "download now" button that is, actually, is just an image with lots of javascript "on click" code :( –  Eye of Hell Mar 13 '11 at 13:02
    
@EyeofHell Start the download in Safari, abort instantly, then right-click and select Copy Address. Try using that in wget/curl. The URL might change between restarts, try to configure your downloader to pick up where the previous download aborted. –  Daniel Beck Mar 13 '11 at 13:06
add comment

This answer just doesn't apply to Chrome but to big downloads in general.

If the download is very large, I try to download it via lynx or curl to a server I have elsewhere (in my case, I have a VPS account with Dreamhost). The transfer speed is quite fast and then I just just whatever tool I want to download it to my local machine.

If you need to download it in pieces (because the large file size is cumbersome), you can always use the unix 'split' command; assuming the files are in binary, you may have to convert them to a suitable 'text' format, but the command itself is very straightforward, as is reassembling the pieces.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.