test_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
/* now specify which file to upload */
- test_setopt(curl, CURLOPT_INFILE, hd_src);
+ test_setopt(curl, CURLOPT_READDATA, hd_src);
/* and give the size of the upload (optional) */
test_setopt(curl, CURLOPT_INFILESIZE_LARGE,
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, NULL);
+ test_setopt(curl, CURLOPT_READDATA, NULL);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
test_setopt(curl,CURLOPT_URL, URL);
/* now specify which file to upload */
- test_setopt(curl, CURLOPT_INFILE, hd_src);
+ test_setopt(curl, CURLOPT_READDATA, hd_src);
/* Now run off and do what you've been told! */
res = curl_easy_perform(curl);
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);