curl-users
Re: suppress multipart response when retrieving non-overlapping range from file
Date: Wed, 1 Oct 2008 23:20:46 -0700
On Wed, Oct 01, 2008 at 11:45:20PM -0400, Michael Schreiber wrote:
> Is there a method for suppressing the multi-part response when
> grabbing a non-overlapping range from a file?
No. It's a mandatory part of HTTP 1.1:
When an HTTP 206 (Partial Content) response message includes the
content of multiple ranges (a response to a request for multiple
non-overlapping ranges), these are transmitted as a multipart
message-body. The media type for this purpose is called
"multipart/byteranges".
If you write a program to use libcurl directly, you could send multiple
simultaneous pipelined requests, each requesting a different part of the
file. The resulting data would be automatically concatenated the way you
want and would be just about as efficient as a single request. But you
can't do that from the command-line client.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-10-02