def get_raw_poster(self):
        ld = len(self._data)
        c = pycurl.Curl()
        resp = HTTPResponse(self._encoding)
        c.setopt(c.URL, str(self._url))
        c.setopt(pycurl.POST, 1)
        c.setopt(c.READFUNCTION, DataWrapper(self._data).read)
        c.setopt(c.POSTFIELDSIZE, ld)
        c.setopt(c.WRITEFUNCTION, resp._body_callback)
        c.setopt(c.HEADERFUNCTION, resp._header_callback)
        headers = self._headers[:]
        headers.append(httputils.ContentType("")) # removes libcurl internal header
        headers.append(httputils.ContentLength(str(ld)))
        c.setopt(c.HTTPHEADER, map(str, headers))
        self._set_common(c)
        return c, resp
Initialise the capture file.
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py/HTTPRequest.get_raw_poster--crossover with--dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py/TestCase.init_capfile