I want to to download some subtitle files, stored in rar files form http://subs.sab.bz/ The site provides rss feeds for its new releases. Unfortunately, the link provided will open a download page, but will not get the file.
The download page has a button in the middle, and clicking on it will trigger the download of the desired rar file. Anyway, if I right click and copy the link, and try to open it, the browser will open the download page itself, but will not download the file. When I try to use the download link of the file in wget and curl, a php file is downloaded. I read that in such cases a server-side script is used to pass the correct link to the client machine.
So, I am looking for a way to force wget to emulate onclick action of this link. I know html css and javascript enough to find other properties of the download link.
Can this even be done?
PS. I am quite confused why this question was down-voted? Any good explanation, did I break any rules for posting or something, thank you..
wget --referer http://subs.sab.bz/ 'http://subs.sab.bz/...&attach_id=1234'
got me a RAR file.