
Go to the source code of this file.
Functions | |
| curl_formfree (post) | |
| fail_unless (rc==0,"curl_formadd returned error") | |
| fail_unless (post==last,"post and last weren't the same") | |
| fail_unless (rc==0,"curl_formget returned error") | |
| fail_unless (total_size==486,"curl_formget got wrong size back") | |
| static size_t | print_httppost_callback (void *arg, const char *buf, size_t len) |
| static CURLcode | unit_setup (void) |
| static void | unit_stop (void) |
Variables | |
| char | buffer [] = "test buffer" |
| struct curl_httppost * | last = NULL |
| struct curl_httppost * | post = NULL |
| UNITTEST_START int | rc |
| size_t | total_size = 0 |
| curl_formfree | ( | post | ) |
| fail_unless | ( | rc | = =0, |
| "curl_formadd returned error" | |||
| ) |
| fail_unless | ( | post | = =last, |
| "post and last weren't the same" | |||
| ) |
| fail_unless | ( | rc | = =0, |
| "curl_formget returned error" | |||
| ) |
| fail_unless | ( | total_size | = =486, |
| "curl_formget got wrong size back" | |||
| ) |
| static size_t print_httppost_callback | ( | void * | arg, |
| const char * | buf, | ||
| size_t | len | ||
| ) | [static] |
Definition at line 36 of file unit1308.c.
| static CURLcode unit_setup | ( | void | ) | [static] |
Definition at line 26 of file unit1308.c.
| static void unit_stop | ( | void | ) | [static] |
Definition at line 31 of file unit1308.c.
Definition at line 48 of file unit1308.c.
| struct curl_httppost* last = NULL |
Definition at line 46 of file unit1308.c.
| post = NULL |
Definition at line 45 of file unit1308.c.
curl_formadd(&post, &last, CURLFORM_COPYNAME, "name", CURLFORM_COPYCONTENTS, "content", CURLFORM_END)
Definition at line 44 of file unit1308.c.
| size_t total_size = 0 |
Definition at line 47 of file unit1308.c.