When CURLOPT_RANGE is specified in the FTP protocol, does it ever write out-of-range data?

Yoshimasa Ohno via curl-library <[email protected]>
Newsgroups gmane.comp.web.curl.library
Message-ID <CA+0c++ohSu-RJvSXe0E13oYeW2kFJLWqp5aERr8hPYnn0sdEbA@mail.gmail.com>
Hello everyone.

I am developing an application with FTP client functionality using libcurl.

In the application, I am trying to specify the retrieval range in
CURLOPT_RANGE and write
incoming data through CURLOPT_WRITEFUNCTION.

As far as I can tell, the callback to CURLOPT_WRITEFUNCTION doesn't seem to
pass over data outside the range specified by
CURLOPT_RANGE. Is this a coincidence? Or is it designed that way?

The CURLOPT_RANGE documentation states that the range specification may be
ignored by the HTTP protocol.
Since the FTP protocol does not have a range specification (end-of-range
specification) mechanism, we expect that the libcurl side is designed to
ignore out-of-range data.

What do you think?

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.