Skip to content
Snippets Groups Projects
Commit 41110325 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

CURLOPT_RANGE.3: works for SFTP as well

... and added a small example
parent 50313059
No related branches found
No related tags found
No related merge requests found
......@@ -43,13 +43,24 @@ Pass a NULL to this option to disable the use of ranges.
.SH DEFAULT
NULL
.SH PROTOCOLS
HTTP, FTP, FILE and RTSP
HTTP, FTP, FILE, RTSP and SFTP.
.SH EXAMPLE
TODO
.nf
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* get the first 200 bytes */
curl_easy_setopt(curl, CURLOPT_RANGE, "0-199");
/* Perform the request */
curl_easy_perform(curl);
}
.fi
.SH AVAILABILITY
FILE since 7.18.0, RTSP since 7.20.0
.SH RETURN VALUE
Returns CURLE_OK on success or
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
.SH "SEE ALSO"
.BR CURLOPT_RESUME_FROM "(3), "
.BR CURLOPT_RESUME_FROM "(3), "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment