def post(self, url, postParameters=None, urlParameters=None):
        """
        Convenience method for requesting to google with proper cookies/params.
        """
        if self.authorized_client:
            if urlParameters:
                getString = self.getParameters(urlParameters)
                req = urllib2.Request(url + "?" + getString)
            else:
                req = urllib2.Request(url)
            postString = self.postParameters(postParameters)
            resp,content = self.authorized_client.request(req, method="POST", body=postString)
            return toUnicode(content)
        else:
            raise IOError("No authorized client available.")
def post ( self , url , postParameters = None , urlParameters = None ) : if self . authorized_client : if urlParameters : getString = self . getParameters ( urlParameters ) req = urllib2 . Request ( url + "?" + getString ) else : req = urllib2 . Request ( url ) postString = self . postParameters ( postParameters ) resp , content = self . authorized_client . request ( req , method = "POST" , body = postString ) return toUnicode ( content ) else : raise IOError ( "No authorized client available." )
Convenience method for requesting to google with proper cookies/params.