(self, odict)
Sets the body to the URL-encoded form data, and adds the
            appropriate content-type header. Note that this will destory the
            existing body if there is one.
Sets the body to the URL-encoded form data, and adds the
            appropriate content-type header. Note that this will destory the
            existing body if there is one.
Sets the body to the URL - encoded form data and adds the appropriate content - type header . Note that this will destory the existing body if there is one .
def set_form_urlencoded(self, odict):
        """
            Sets the body to the URL-encoded form data, and adds the
            appropriate content-type header. Note that this will destory the
            existing body if there is one.
        """
        # FIXME: If there's an existing content-type header indicating a
        # url-encoded form, leave it alone.
        self.headers["Content-Type"] = [HDR_FORM_URLENCODED]
        self.content = utils.urlencode(odict.lst)
def set_form_urlencoded ( self , odict ) : # FIXME: If there's an existing content-type header indicating a # url-encoded form, leave it alone. self . headers [ "Content-Type" ] = [ HDR_FORM_URLENCODED ] self . content = utils . urlencode ( odict . lst )