Functions | Variables
unit1308.c File Reference
#include "curlcheck.h"
#include <curl/curl.h>
Include dependency graph for unit1308.c:

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==488,"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_httppostlast = NULL
 
struct curl_httppostpost = NULL
 
UNITTEST_START int rc
 
size_t total_size = 0
 

Function Documentation

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  = =488,
"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.

Variable Documentation

char buffer[] = "test buffer"

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.

rc
Initial value:
= curl_formadd(&post, &last, CURLFORM_COPYNAME, "name",
CURLFORM_COPYCONTENTS, "content", CURLFORM_END)
struct curl_httppost * post
Definition: unit1308.c:45
struct curl_httppost * last
Definition: unit1308.c:46
CURL_EXTERN CURLFORMcode curl_formadd(struct curl_httppost **httppost, struct curl_httppost **last_post,...)
Definition: formdata.c:743

Definition at line 44 of file unit1308.c.

size_t total_size = 0

Definition at line 47 of file unit1308.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17