

def post_URL(self, obj, data, logfile=None, **kwargs):
    'Perform a POST method.\n        '
    obj_t = type(obj)
    if issubclass(obj_t, (str, urlparse.UniversalResourceLocator)):
        r = HTTPRequest(obj, **kwargs)
        r.method = 'POST'
        r.data = data
        resp = r.perform(logfile)
        if resp.error:
            return ([], [resp])
        else:
            return ([resp], [])
    elif issubclass(obj_t, HTTPRequest):
        obj.method = 'POST'
        obj.data = data
        resp = obj.perform(logfile)
        return ([resp], [])
    else:
        for (url, rd) in itertools.izip(iter(obj), iter(data)):
            r = HTTPRequest(str(url), **kwargs)
            r.method = 'POST'
            r.data = rd
            self._requests.append(r)
            return self.perform(logfile)

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPConnectionManager.post_URL/original