Created
October 23, 2010 20:10
-
-
Save mbmccormick/642640 to your computer and use it in GitHub Desktop.
Making an outbound urlfetch call with Google AppEngine and HTTP Basic authorization.
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
result = urlfetch.fetch( | |
"http://yourserver.com/page/init.php, | |
headers = { "Authorization": | |
"Basic %s" % base64.encodestring("username:password")[:-1] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment