This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Example of how to use Poster.encode on AppEngine. | |
http://atlee.ca/software/poster/ | |
The only variation needed versus the example from Poster is that | |
GAE's UrlFetch cannot use the generator returned by multipart_encode() | |
for payload, so simply create a payload string first. | |
""" |