tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE
This commit is contained in:
@@ -86,7 +86,7 @@ int test(char *URL)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user