def toURLEncoded(self):
        """Generate an x-www-urlencoded string"""
        args = self.toPostArgs().items()
        args.sort()
        return urllib.urlencode(args)
def toURLEncoded ( self ) : args = self . toPostArgs ( ) . items ( ) args . sort ( ) return urllib . urlencode ( args )
Generate an x-www-urlencoded string