Last active
December 16, 2015 08:19
-
-
Save grampelberg/5405184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib2 | |
print urllib2.urlopen("http://localhost:8080/login", | |
urllib.urlencode({ "username": "foo", "password": "bar" }).read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment