mirror of
https://github.com/curl/curl.git
synced 2026-07-26 13:27:16 +03:00
use the newer option names
This commit is contained in:
parent
7e3cd82b50
commit
f68219ddaa
7 changed files with 7 additions and 7 deletions
|
|
@ -82,7 +82,7 @@ int main(int argc, char **argv)
|
|||
curl_easy_setopt(curl,CURLOPT_URL, url);
|
||||
|
||||
/* now specify which file to upload */
|
||||
curl_easy_setopt(curl, CURLOPT_INFILE, hd_src);
|
||||
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
|
||||
|
||||
/* and give the size of the upload (optional) */
|
||||
curl_easy_setopt(curl, CURLOPT_INFILESIZE, file_info.st_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue