parent
34ebf3f90d
commit
b54e18640e
@ -140,10 +140,6 @@ int test(char *URL)
|
|||||||
mime = curl_mime_init(pooh.easy);
|
mime = curl_mime_init(pooh.easy);
|
||||||
part = curl_mime_addpart(mime);
|
part = curl_mime_addpart(mime);
|
||||||
result = curl_mime_name(part, name);
|
result = curl_mime_name(part, name);
|
||||||
if(!result)
|
|
||||||
res = curl_mime_data_cb(part, (curl_off_t) 2, read_callback,
|
|
||||||
NULL, NULL, &pooh);
|
|
||||||
|
|
||||||
if(result) {
|
if(result) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Something went wrong when building the mime structure: %d\n",
|
"Something went wrong when building the mime structure: %d\n",
|
||||||
@ -151,6 +147,9 @@ int test(char *URL)
|
|||||||
goto test_cleanup;
|
goto test_cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res = curl_mime_data_cb(part, (curl_off_t) 2, read_callback,
|
||||||
|
NULL, NULL, &pooh);
|
||||||
|
|
||||||
/* Bind mime data to its easy handle. */
|
/* Bind mime data to its easy handle. */
|
||||||
if(!res)
|
if(!res)
|
||||||
test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime);
|
test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user