curl-and-python

Re: pycurl.FORM_CONTENTHEADER

From: Oleg Pudeyev <oleg+pycurl_at_bsdpower.com>
Date: Tue, 15 Oct 2013 14:42:39 -0400

On Mon, 14 Oct 2013 17:05:29 -0700
Dima Tisnek <dimaqq_at_gmail.com> wrote:

> the patch is pretty old. does it still apply cleanly?

I rebased and updated it several times.

> also, what are those magic bits in xdecref?

pycurl objects are fairly complex and their parts need to be freed in a
certain sequence. Also operations like reset free some but not all
parts of pycurl objects. Bit fields are for these memory groups.

> How about support any CURLOPT_ flag that is possible in multipart
> post?

This probably will not be easily possible due to memory management
issues, i.e., the python objects that are handed to libcurl need to
have their reference counts incremented to ensure they are not freed
while libcurl is using them.

> Overall content-length may or may not be possible to compute in
> advance.

Certainly.

Oleg
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-10-15