Skip to content

Instantly share code, notes, and snippets.

@wezm
Created February 25, 2009 22:21
Show Gist options
  • Save wezm/70471 to your computer and use it in GitHub Desktop.
Save wezm/70471 to your computer and use it in GitHub Desktop.
#!/bin/sh
# passwd_login should be set to the password
curl \
-H 'Referer: http://lesswrong.local:8000/a/1i/about_lesswrong/' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'Accept-Encoding: gzip,deflate' \
--form-string 'rem=off&passwd_login=www&user_login=wmoore&op=login-main&uh=&_=' \
-o lesswrong_login.txt.gz 'http://lesswrong.local:8000/api/login'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment