Skip to content

Instantly share code, notes, and snippets.

@joellobo
Last active August 27, 2017 15:06
Show Gist options
  • Save joellobo/8e2df13fc42ebe5fea43d2397b3b58dd to your computer and use it in GitHub Desktop.
Save joellobo/8e2df13fc42ebe5fea43d2397b3b58dd to your computer and use it in GitHub Desktop.
wget -r --no-parent http://example.com/configs/.vim/
--no-check-certificate
# Log in to the server. This can be done only once.
wget --save-cookies cookies.txt \
--keep-session-cookies \
--post-data 'user=foo&password=bar' \
--delete-after \
http://server.com/auth.php
# Now grab the page or pages we care about.
wget --load-cookies cookies.txt \
http://server.com/interesting/article.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment