-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl does not parse multipart/byterange responses #6124
Comments
This behavior is documented in the man page for the |
This is what my version of curl has to say about
I can see it contain a notice that certain range specifications will make the server respond with a multipart response, but nowhere in there it says that curl will do nothing to parse this response. Or are you thinking about a different part of this? I'd argue that, as quoted above at least (and this seems to be the latest version of the documentation) this behaviour is not documented, in that the documentation does not say anything about what curl will do (or won't do) to that response. |
I think it does, but feel free to suggest improvements in the phrasing. |
@bagder maybe we should add in some general section that curl does not interpret or otherwise parse/transform the response unless explicitly documented? This is not the first time someone kinda expects that curl would do some magic with the response which is out of scope of the project. |
Yeah, we should try to make that clearer. The challenge is probably then just where we would put such an explanation... |
I think it makes sense for this project principle ("curl does not transform responses") to be documented somewhere central, but I think it should also probably be mentioned wherever it will have a relevant impact, even if it points to that central place where the principle is explained in more detail. If we don't object to having this mentioned in more than one place, then I'll happily push a proposed amendment to the |
Explain the basic concepts behind curl output. Inspired by #6124
Explain the basic concepts behind curl output. Inspired by #6124
I did this
I attempted requesting multiple non-consecutive byte ranges from a server that supports this by responding with a
multipart/byterange
response. The test request was for two 4-byte ranges, for a total of 8 bytes.I expected the following
I expected the content of
curl.out
to contain the 8 bytes resulting from the two 4-byte parts.I got this instead
Instead, the output file was generated with the raw multipart response, including the part boundaries, the part headers, and the final closing boundary.
I believe this to be a bug because RFC 7233 § 4.1 states that
curl/libcurl version
operating system
The text was updated successfully, but these errors were encountered: