Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling HTTP redirects #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Handling HTTP redirects
Some Tumblr pages only provide https. It was possible to download these
pages as well by specifying the protocol explicitly. However there's no
reason for the user to be concerned with this because `curl` knows how
to follow redirects.
  • Loading branch information
rouanth committed Aug 12, 2017
commit 1e630e47d931129f4f5b7b544960f04f14511365
2 changes: 1 addition & 1 deletion tumbdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ targetDir=$2
# global curl options
# to disable progress bar, replace with -s
# to enable verbose mode, add -v
curlOptions='--progress-bar'
curlOptions='--progress-bar --location'
userAgent='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0'

# check usage
Expand Down