changeset: 491:017811f5d5c8
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Mar 31 15:01:01 2010 +0200
files: surf.suckless.org/files/autologin.md
description:
Adding autologin script for twitter.
diff -r 20fdbf482f4e -r 017811f5d5c8 surf.suckless.org/files/autologin.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/files/autologin.md Wed Mar 31 15:01:01 2010 +0200
_AT_@ -0,0 +1,28 @@
+AUTOLOGIN
+=========
+
+Feel free to post autologin scripts to your favorite site. __Do not forget to
+remove your passwords from the script!!!__
+
+* Twitter
+
+ #!/bin/sh
+ read -p "Name: " name
+ read -p "Password: " -s pass
+ echo
+ curl --cookie ~/.surf/cookies.txt --cookie-jar ~/.surf/cookies.txt \
+ -d "session[username_or_email]=$name" \
+ -d "session[password]=$pass" \
+ -d "remember_me=1" \
+ -d "commit=Sign In" \
+
http://twitter.com/sessions > /dev/null
+ curl --cookie ~/.surf/cookies.txt --cookie-jar ~/.surf/cookies.txt \
+
http://twitter.com/ > /dev/null
+ surf
http://mobile.twitter.com
+
+
+Author
+------
+
+* Enno Boland (Gottox) < g s01 de >
+
Received on Wed Mar 31 2010 - 15:10:46 CEST