Loading tests/libtest/lib506.c +1 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ static void *fire(void *ptr) /* build request url */ static char *suburl(const char *base, int i) { return curl_maprintf("%s000%c", base, 48+i); return curl_maprintf("%s%.4d", base, i); } Loading tests/libtest/lib508.c +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ int test(char *URL) /* Now specify we want to POST data */ curl_easy_setopt(curl, CURLOPT_POST, 1L); #ifdef CURL_DOES_CONVERSIONS /* Convert the POST data to ASCII */ curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); #endif /* Set the expected POST size */ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); Loading tests/libtest/lib510.c +5 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,11 @@ int test(char *URL) /* Now specify we want to POST data */ curl_easy_setopt(curl, CURLOPT_POST, 1L); #ifdef CURL_DOES_CONVERSIONS /* Convert the POST data to ASCII */ curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); #endif /* we want to use our own read function */ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); Loading tests/libtest/lib544.c +7 −0 Original line number Diff line number Diff line Loading @@ -13,7 +13,14 @@ #include "memdebug.h" static char teststring[] = #ifdef CURL_DOES_CONVERSIONS /* ASCII representation with escape sequences for non-ASCII platforms */ "\x54\x68\x69\x73\x00\x20\x69\x73\x20\x74\x65\x73\x74\x20\x62\x69\x6e\x61" "\x72\x79\x20\x64\x61\x74\x61\x20\x77\x69\x74\x68\x20\x61\x6e\x20\x65\x6d" "\x62\x65\x64\x64\x65\x64\x20\x4e\x55\x4c\x20\x62\x79\x74\x65\x0a"; #else "This\0 is test binary data with an embedded NUL byte\n"; #endif int test(char *URL) Loading tests/libtest/lib547.c +8 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,14 @@ #include "memdebug.h" #ifdef CURL_DOES_CONVERSIONS /* ASCII representation with escape sequences for non-ASCII platforms */ # define UPLOADTHIS "\x74\x68\x69\x73\x20\x69\x73\x20\x74\x68\x65\x20\x62" \ "\x6c\x75\x72\x62\x20\x77\x65\x20\x77\x61\x6e\x74\x20" \ "\x74\x6f\x20\x75\x70\x6c\x6f\x61\x64\x0a" #else # define UPLOADTHIS "this is the blurb we want to upload\n" #endif #ifndef LIB548 static size_t readcallback(void *ptr, Loading Loading
tests/libtest/lib506.c +1 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ static void *fire(void *ptr) /* build request url */ static char *suburl(const char *base, int i) { return curl_maprintf("%s000%c", base, 48+i); return curl_maprintf("%s%.4d", base, i); } Loading
tests/libtest/lib508.c +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ int test(char *URL) /* Now specify we want to POST data */ curl_easy_setopt(curl, CURLOPT_POST, 1L); #ifdef CURL_DOES_CONVERSIONS /* Convert the POST data to ASCII */ curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); #endif /* Set the expected POST size */ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); Loading
tests/libtest/lib510.c +5 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,11 @@ int test(char *URL) /* Now specify we want to POST data */ curl_easy_setopt(curl, CURLOPT_POST, 1L); #ifdef CURL_DOES_CONVERSIONS /* Convert the POST data to ASCII */ curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); #endif /* we want to use our own read function */ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); Loading
tests/libtest/lib544.c +7 −0 Original line number Diff line number Diff line Loading @@ -13,7 +13,14 @@ #include "memdebug.h" static char teststring[] = #ifdef CURL_DOES_CONVERSIONS /* ASCII representation with escape sequences for non-ASCII platforms */ "\x54\x68\x69\x73\x00\x20\x69\x73\x20\x74\x65\x73\x74\x20\x62\x69\x6e\x61" "\x72\x79\x20\x64\x61\x74\x61\x20\x77\x69\x74\x68\x20\x61\x6e\x20\x65\x6d" "\x62\x65\x64\x64\x65\x64\x20\x4e\x55\x4c\x20\x62\x79\x74\x65\x0a"; #else "This\0 is test binary data with an embedded NUL byte\n"; #endif int test(char *URL) Loading
tests/libtest/lib547.c +8 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,14 @@ #include "memdebug.h" #ifdef CURL_DOES_CONVERSIONS /* ASCII representation with escape sequences for non-ASCII platforms */ # define UPLOADTHIS "\x74\x68\x69\x73\x20\x69\x73\x20\x74\x68\x65\x20\x62" \ "\x6c\x75\x72\x62\x20\x77\x65\x20\x77\x61\x6e\x74\x20" \ "\x74\x6f\x20\x75\x70\x6c\x6f\x61\x64\x0a" #else # define UPLOADTHIS "this is the blurb we want to upload\n" #endif #ifndef LIB548 static size_t readcallback(void *ptr, Loading