

def get_form_poster(self):
    'Initialze a Curl object for a single POST request.\n\n        This sends a multipart/form-data, which allows you to upload files.\n\n        Returns a tuple of initialized Curl and HTTPResponse objects.\n        '
    data = self._data.items()
    c = pycurl.Curl()
    resp = HTTPResponse(self._encoding)
    c.setopt(c.URL, str(self._url))
    c.setopt(pycurl.HTTPPOST, data)
    c.setopt(c.WRITEFUNCTION, resp._body_callback)
    c.setopt(c.HEADERFUNCTION, resp._header_callback)
    self._set_common(c)
    return (c, resp)

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPRequest.get_form_poster/original