'Invoke the POST method on a resource.
@param relpath: Optional. A relative path to this resource\'s path.
@param params: Key-value data.
@param data: Optional. Body of the request.
@param contenttype: Optional.
@param headers: Optional. Base set of headers.
@param allow_redirects: Optional. Allow request to automatically resolve redirects.
@param clear_cookies: Optional. A flag to force any session cookies to be reset on the request.
@return: A dictionary of the JSON result.'

def post(self, relpath=None, params=None, data=None, contenttype=None, headers=None, files=None, allow_redirects=False, clear_cookies=False):

    return self.invoke('POST', relpath, params, data, headers=self._make_headers(contenttype, headers), files=files, allow_redirects=allow_redirects, clear_cookies=clear_cookies)
