wget - HTML redirect issue

2019-07-28 11:57发布

问题:

I can't get wget to work on the following link. (HTML redirect it seems)

http://www.limesurvey.org/en/stable-release/finish/25-latest-stable-release/407-limesurvey192plus-build120418targz

Found here_ http://www.limesurvey.org/en/stable-release

I searched and tried different options, no success. Help would be appricated. Thanks.

回答1:

Look at the HTML you get from that link:

<script>document.location.href='http://download.limesurvey.org/Latest_stable_release/limesurvey192plus-build120418.tar.gz';</script>

wget can't execute JS, so you have to copy the link and wget that:

wget http://download.limesurvey.org/Latest_stable_release/limesurvey192plus-build120418.tar.gz


标签: linux wget