curl-and-python
Re: aborting a transaction
Date: Wed, 23 Sep 2009 17:12:27 -0400 (EDT)
On Wed, 23 Sep 2009, johansen_at_sun.com wrote:
> On Tue, Sep 22, 2009 at 10:15:17PM -0400, Seth Vidal wrote:
>> arguably you could be handed an endless header and obliterate all memory.
>> I put a configurable max header size (default to 2mb) in place and work
>> from there.
>
> Is this actually a case that we can hit if the client hasn't installed a
> HEADERFUNCTION? I'm a bit surprised that curl would hold onto all of
> the headers, instead of just extracting the ones that it cares about.
I don't know - but I needed a separate headerfunction b/c of how I need to
extract the content-length before continuing on.
So in my case, it was necessary.
> There's easy.errstr(), but it only returns the error string from the
> current handle. There's no curl_easy_strerror() equivalent in pycurl,
> AFAICT.
the latter is what I want. It'd be nice to turn pycurl.E_FILESIZE_EXCEEDED
into a slightly nicer output.
-sv
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-09-23