It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello;
Just wondering, I tried using Web4Wget on my file server, but keep getting 404's....
So, is there a way to do it? I'd rather have my file server handle it with out having to keep my laptop/desktop on all night.
If not, its cool, more of a curiosity/excuse to play with the server than anything.
Thx!
and you guys rock!
This question / problem has been solved by cogadhimage
IIRC, the only way to get GOG downloads is either via your browser or with GOG's own downloader. GOG does not support resume functions (other than with the downloader) and they do this funky thing where they generate a unique download link each time you try to download a game and that link cannot be copied/pasted into another client.
avatar
denyasis: Hello;
Just wondering, I tried using Web4Wget on my file server, but keep getting 404's....
So, is there a way to do it? I'd rather have my file server handle it with out having to keep my laptop/desktop on all night.
If not, its cool, more of a curiosity/excuse to play with the server than anything.
Thx!
and you guys rock!

You might try and start the download on your PC with a download manager and copy the download link then use that with Wget on your server. Not sure if it'll work as I don't know if they assign the same download URL for each request from a certain user.
avatar
cogadh: IIRC, the only way to get GOG downloads is either via your browser or with GOG's own downloader. GOG does not support resume functions (other than with the downloader) and they do this funky thing where they generate a unique download link each time you try to download a game and that link cannot be copied/pasted into another client.

I had a feeling that was the case. It makes sense, its probably the best method available to prevent piracy. I was hoping to que up some games over night as my Distro upgrade is taking way longer than I estimated, lol. I really have no reason to complain though - Now I just have to figure out what game I want to play first....
Thanks!
avatar
AndrewC: You might try and start the download on your PC with a download manager and copy the download link then use that with Wget on your server. Not sure if it'll work as I don't know if they assign the same download URL for each request from a certain user.

GOG download links are unique and expire if inactive for too long, but any half-decent download manager will allow you to paste in a new source URL and then resume the download. I use Free Download Manager for all my GOG downloads and have had no trouble resuming downloads after any given length of time by feeding in the new source URL in this manner.
Thanks Andrew and Arkose, that was a good idea. I decided to give it a shot. I didn't get a 404, but ended up with a 403, lol. It makes perfect sense, I suppose. i'm logged in via my laptop, but not via the file server. Not too sure how to tackle that one. I'll have to add Wget authentication to my *nix learning list, right behind figuring ALSA out :-)
Post edited April 20, 2010 by denyasis
avatar
AndrewC: You might try and start the download on your PC with a download manager and copy the download link then use that with Wget on your server. Not sure if it'll work as I don't know if they assign the same download URL for each request from a certain user.
avatar
Arkose: GOG download links are unique and expire if inactive for too long, but any half-decent download manager will allow you to paste in a new source URL and then resume the download. I use Free Download Manager for all my GOG downloads and have had no trouble resuming downloads after any given length of time by feeding in the new source URL in this manner.
Yea I like free download manager too and rather not install that adobe crapware.

I had it work once kinda... allot of the times I get a "403 - username and password required" error.. Other times the download resumes and ends up corrupted..

And entering my gog.com info doesn't change that. Especially if im trying to resume something. If I set FDM to "ask" if i wanna resume, it doesnt work. Seems like it has to be on auto resume, because the url expires in like 3 seconds..

Just a bit annoying. GOG.com should fully support download managers and allow us to log in with our normal log in.
Post edited January 03, 2011 by Eleventeen
avatar
cogadh: IIRC, the only way to get GOG downloads is either via your browser or with GOG's own downloader. GOG does not support resume functions (other than with the downloader) and they do this funky thing where they generate a unique download link each time you try to download a game and that link cannot be copied/pasted into another client.
It can, I managed to download a GOG in getright back when the downloader was AWOL and everyone was bitching. I made a guide on how to do it too, see attachment.
Attachments:
I've just done a bunch of experimentation to build a report on out how GOG's authentication scheme works. I believe GOG can handle resuming gracefully with a very small change to the download process.

The mirrors currently respond with "403: Forbidden" when they are given a URL that has expired or never existed in the first place. They should change to send "307: Temporary redirect" and send the user agent to some address on the gog.com server (for argument's sake, it could be in the form https://www.gog.com/en/resume/game/$game/$resource). The GOG server could handle this address by checking if the particular file requested actually exists and respond with "404: Not found" if it does not. If it does exist then it should respond with "401: Unauthorized" so that the download manager asks the user for a username and password to resume. If it fails twice or if it succeeds but that user doesn't have access to the file then respond with "403: Forbidden". Otherwise get a mirror to activate a new URL and send the downloader there using another "307: Temporary redirect".
avatar
skrzynka365: Hi,
try this:
1) add "Export cookies" plugin to firefox
2) Firefox: Tools->Export cookies, save to some file, say, cookies.txt
3) go to your account/owned games on gog.com, and copy "download using browser" link for your game (ie. https://www.gog.com/en/download/game/master_of_magic/0 )
4) run from command line: wget --load-cookies [cookies-file] [game-download-address]
ie:

wget --load-cookies https://www.gog.com/en/download/game/master_of_magic/0

"It works on my machine"
Not sure about resuming, though
Regards
Very helpful tip -- I have been able to use this wget strategy to resume downloads after firefox failed to resume, Using the example from above,

4a) rename setup_*.exe.part file that was partially downloaded by firefox to the last part of the URL found in step 3 (looks like it would be '0' in this example URL, though mine have mostly turned out to be '1_installer_0')

4b) add '--continue' flag to wget command

wget --continue --load-cookies cookies.txt https://www.gog.com/en/download/game/master_of_magic/0