Loading docs/examples/httpput.c +4 −2 Original line number Diff line number Diff line Loading @@ -87,8 +87,10 @@ int main(int argc, char **argv) /* now specify which file to upload */ curl_easy_setopt(curl, CURLOPT_READDATA, hd_src); /* and give the size of the upload */ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, file_info.st_size); /* provide the size of the upload, we specicially typecast the value to curl_off_t since we must be sure to use the correct data size */ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size); /* Now run off and do what you've been told! */ res = curl_easy_perform(curl); Loading Loading
docs/examples/httpput.c +4 −2 Original line number Diff line number Diff line Loading @@ -87,8 +87,10 @@ int main(int argc, char **argv) /* now specify which file to upload */ curl_easy_setopt(curl, CURLOPT_READDATA, hd_src); /* and give the size of the upload */ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, file_info.st_size); /* provide the size of the upload, we specicially typecast the value to curl_off_t since we must be sure to use the correct data size */ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size); /* Now run off and do what you've been told! */ res = curl_easy_perform(curl); Loading