[UGLY HACK] Proof of concept multipart/byteranges support and connection sharing
Martin Pool
mbp at canonical.com
Wed May 24 01:43:57 BST 2006
On 23 May 2006, Michael Ellerman <michael at ellerman.id.au> wrote:
> >No, you should be able to do
> >
> > curl.setopt(pycurl.NOBODY, 0)
> >
> >to turn it off - ie to revert from a HEAD to a GET request. And
> >similarly for Range, I'd expect you can set it to an empty string or
> >None to turn it off.
>
> Yeah, you should. Running the following I see two HEADs go out,
> although some part of libcurl thinks it's doing a GET because it waits
> for the content and then times out. (this is on dapper btw)
OK, it turns out (from
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) that what you need
is
curl.setopt(pycurl.HTTPGET, 1)
to reset it. This works for me.
--
Martin
More information about the bazaar
mailing list