CURLOPT_RANGE.3: works for SFTP as well
... and added a small example
This commit is contained in:
parent
50313059fc
commit
4111032511
@ -43,13 +43,24 @@ Pass a NULL to this option to disable the use of ranges.
|
|||||||
.SH DEFAULT
|
.SH DEFAULT
|
||||||
NULL
|
NULL
|
||||||
.SH PROTOCOLS
|
.SH PROTOCOLS
|
||||||
HTTP, FTP, FILE and RTSP
|
HTTP, FTP, FILE, RTSP and SFTP.
|
||||||
.SH EXAMPLE
|
.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
|
.SH AVAILABILITY
|
||||||
FILE since 7.18.0, RTSP since 7.20.0
|
FILE since 7.18.0, RTSP since 7.20.0
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
Returns CURLE_OK on success or
|
Returns CURLE_OK on success or
|
||||||
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR CURLOPT_RESUME_FROM "(3), "
|
.BR CURLOPT_RESUME_FROM "(3), "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user