Skip to content

Instantly share code, notes, and snippets.

@mbmccormick
Created October 23, 2010 20:10
Show Gist options
  • Save mbmccormick/642640 to your computer and use it in GitHub Desktop.
Save mbmccormick/642640 to your computer and use it in GitHub Desktop.
Making an outbound urlfetch call with Google AppEngine and HTTP Basic authorization.
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