Ejemplo n.º 1
0
 def _call(self, base_url, url, body):
     """Open a network connection and performs HTTP Post
     with provided body.
     """
     # Combines the "base_url" with the
     # required "url" to be used for the specific request.
     url = urljoin(base_url.geturl(), url)
     return _urlopen(url, data=self._encode_params(body))
    def _call(self, base_url, url, params):
        """Open a network connection and performs HTTP Post
		with provided body.
		"""
        # Combines the "base_url" with the
        # required "url" to be used for the specific request.
        url = urljoin(base_url.geturl(), url)
        body = self._encode_params(params)
        log.debug("Making a request to <%s> with body <%s>", url, body)
        return _urlopen(url, data=body)