65,208
社区成员
发帖
与我相关
我的任务
分享Pass a long as parameter. It contains the offset in number of bytes that you want the transfer to start from. Set this option to 0 to make the transfer start from the beginning (effectively disabling resume). For FTP, set this option to -1 to make the transfer start from the end of the target file (useful to continue an interrupted upload).
When doing uploads with FTP, the resume position is where in the local/source file libcurl should try to resume the upload from and it will then append the source file to the remote target file.
中的Pass a long as parameter. It contains the offset in number of bytes that you want the transfer to start from 说 设置一个long参数,它包含的偏移数就是你希望要传输的开始位置
/* Set the continuation offset.
*
* Note there is also a _LARGE version of this key which uses
* off_t types, allowing for large file offsets on platforms which
* use larger-than-32-bit off_t's. Look below for RESUME_FROM_LARGE.
*/
CINIT(RESUME_FROM, LONG, 21),
这个是 curl.h 中的注释更说明了 大文件偏移设置
请楼上滴看清楚curl的api后质疑[/quote]
不是所有无服务器都是遵守相同的协议的, 这是我的意思。curl就是一个library而已。 Pass a long as parameter. It contains the offset in number of bytes that you want the transfer to start from. Set this option to 0 to make the transfer start from the beginning (effectively disabling resume). For FTP, set this option to -1 to make the transfer start from the end of the target file (useful to continue an interrupted upload).
When doing uploads with FTP, the resume position is where in the local/source file libcurl should try to resume the upload from and it will then append the source file to the remote target file.
中的Pass a long as parameter. It contains the offset in number of bytes that you want the transfer to start from 说 设置一个long参数,它包含的偏移数就是你希望要传输的开始位置
/* Set the continuation offset.
*
* Note there is also a _LARGE version of this key which uses
* off_t types, allowing for large file offsets on platforms which
* use larger-than-32-bit off_t's. Look below for RESUME_FROM_LARGE.
*/
CINIT(RESUME_FROM, LONG, 21),
这个是 curl.h 中的注释更说明了 大文件偏移设置
请楼上滴看清楚curl的api后质疑