lib544.c: use duphandle for test 545
To verify that curl_easy_duphandle() works fine on a handle that has gotten data stored with *_COPYPOSTFIELDS.
This commit is contained in:
parent
445aab4b73
commit
d997c8b2f6
@ -68,6 +68,16 @@ int test(char *URL)
|
|||||||
/* Update the original data to detect non-copy. */
|
/* Update the original data to detect non-copy. */
|
||||||
strcpy(teststring, "FAIL");
|
strcpy(teststring, "FAIL");
|
||||||
|
|
||||||
|
#ifdef LIB545
|
||||||
|
{
|
||||||
|
CURL *handle2;
|
||||||
|
handle2 = curl_easy_duphandle(curl);
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
curl = handle2;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Now, this is a POST request with binary 0 embedded in POST data. */
|
/* Now, this is a POST request with binary 0 embedded in POST data. */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user