Thursday, December 11, 2014

linux - Using Wget to Download a File From a Page That Uses Redirection To Initialize Download

I was writing a script with wget that tried to download the latest version of blender available on blenders home page to try to automate downloading the latest version. I ran into a problem with wget though. If you continue through the webpage to the download page of your desired version, there seems to be a redirection request (or something like it) that gives you a mirror to the most appropriate download for you location. I tried using curl -L -O to try to follow that redirection, but it didn't seem to do what I wanted it to.



Is there a way to handle this using wget? My current ideal script would navigate from the blender home page every time without any hard links to specific versions.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...