Loading CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,9 @@ Changelog Daniel Fandrich (8 Jul 2008) - Fixed test 554 to pass the torture test. Daniel Fandrich (7 Jul 2008) - Added test cases 1034 & 1035 to test IDN name conversion failures. Loading docs/libcurl/curl_formadd.3 +2 −2 Original line number Diff line number Diff line Loading @@ -128,9 +128,9 @@ you've called \fIcurl_easy_cleanup(3)\fP for the curl handle. See example below. .SH RETURN VALUE 0 means everything was ok, non-zero means an error occurred as 0 means everything was ok, non-zero means an error occurred corresponding to a CURL_FORMADD_* constant defined in .I <curl/curl.h> defines. .SH EXAMPLE .nf Loading lib/formdata.c +1 −1 Original line number Diff line number Diff line Loading @@ -705,7 +705,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost, } if(CURL_FORMADD_OK == return_value) { /* go through the list, check for copleteness and if everything is /* go through the list, check for completeness and if everything is * alright add the HttpPost item otherwise set return_value accordingly */ post = NULL; Loading tests/libtest/lib554.c +6 −7 Original line number Diff line number Diff line Loading @@ -44,11 +44,14 @@ int test(char *URL) struct curl_httppost *lastptr=NULL; struct WriteThis pooh; if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } pooh.readptr = data; pooh.sizeleft = strlen(data); curl_global_init(CURL_GLOBAL_ALL); /* Fill in the file upload field */ formrc = curl_formadd(&formpost, &lastptr, Loading Loading @@ -81,13 +84,9 @@ int test(char *URL) if(formrc) printf("curl_formadd(3) = %d\n", (int)formrc); if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } if ((curl = curl_easy_init()) == NULL) { fprintf(stderr, "curl_easy_init() failed\n"); curl_formfree(formpost); curl_global_cleanup(); return TEST_ERR_MAJOR_BAD; } Loading Loading
CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,9 @@ Changelog Daniel Fandrich (8 Jul 2008) - Fixed test 554 to pass the torture test. Daniel Fandrich (7 Jul 2008) - Added test cases 1034 & 1035 to test IDN name conversion failures. Loading
docs/libcurl/curl_formadd.3 +2 −2 Original line number Diff line number Diff line Loading @@ -128,9 +128,9 @@ you've called \fIcurl_easy_cleanup(3)\fP for the curl handle. See example below. .SH RETURN VALUE 0 means everything was ok, non-zero means an error occurred as 0 means everything was ok, non-zero means an error occurred corresponding to a CURL_FORMADD_* constant defined in .I <curl/curl.h> defines. .SH EXAMPLE .nf Loading
lib/formdata.c +1 −1 Original line number Diff line number Diff line Loading @@ -705,7 +705,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost, } if(CURL_FORMADD_OK == return_value) { /* go through the list, check for copleteness and if everything is /* go through the list, check for completeness and if everything is * alright add the HttpPost item otherwise set return_value accordingly */ post = NULL; Loading
tests/libtest/lib554.c +6 −7 Original line number Diff line number Diff line Loading @@ -44,11 +44,14 @@ int test(char *URL) struct curl_httppost *lastptr=NULL; struct WriteThis pooh; if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } pooh.readptr = data; pooh.sizeleft = strlen(data); curl_global_init(CURL_GLOBAL_ALL); /* Fill in the file upload field */ formrc = curl_formadd(&formpost, &lastptr, Loading Loading @@ -81,13 +84,9 @@ int test(char *URL) if(formrc) printf("curl_formadd(3) = %d\n", (int)formrc); if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } if ((curl = curl_easy_init()) == NULL) { fprintf(stderr, "curl_easy_init() failed\n"); curl_formfree(formpost); curl_global_cleanup(); return TEST_ERR_MAJOR_BAD; } Loading