

def get_URLencoded_poster(self):
    'Initialze a Curl object for a single POST request.\n\n        Returns a tuple of initialized Curl and HTTPResponse objects.\n        '
    data = urlparse.urlencode(self._data, True)
    c = pycurl.Curl()
    resp = HTTPResponse(self._encoding)
    c.setopt(resp.URL, str(self._url))
    c.setopt(pycurl.POST, 1)
    c.setopt(pycurl.POSTFIELDS, data)
    c.setopt(c.WRITEFUNCTION, resp._body_callback)
    c.setopt(c.HEADERFUNCTION, resp._header_callback)
    headers = self._headers[:]
    headers.append(httputils.ContentType('application/x-www-form-urlencoded'))
    headers.append(httputils.ContentLength(str(len(data))))
    c.setopt(c.HTTPHEADER, map(str, headers))
    self._set_common(c)
    return (c, resp)

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPRequest.get_URLencoded_poster/VarMisuse@46/107 `c`->`resp`