doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
formdata.c File Reference
#include "setup.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <curl/curl.h>
#include "formdata.h"
#include "strequal.h"

Go to the source code of this file.

Macros

#define CURL_OLDSTYLE   1 /* enable deprecated prototype for curl_formparse */
 
#define BOUNDARY_LENGTH   40
 
#define HTTPPOST_CONTENTTYPE_DEFAULT   "application/octet-stream"
 
#define FORM_FILE_SEPARATOR   ','
 
#define FORM_TYPE_SEPARATOR   ';'
 

Functions

int curl_formparse (char *input, struct curl_httppost **httppost, struct curl_httppost **last_post)
 
CURLFORMcode curl_formadd (struct curl_httppost **httppost, struct curl_httppost **last_post,...)
 
char * Curl_FormBoundary (void)
 
void Curl_formclean (struct FormData *form)
 
void curl_formfree (struct curl_httppost *form)
 
CURLcode Curl_getFormData (struct FormData **finalform, struct curl_httppost *post, curl_off_t *sizep)
 
int Curl_FormInit (struct Form *form, struct FormData *formdata)
 
size_t Curl_FormReader (char *buffer, size_t size, size_t nitems, FILE *mydata)
 
size_t Curl_FormReadOneLine (char *buffer, size_t size, size_t nitems, FILE *mydata)
 

Macro Definition Documentation

#define BOUNDARY_LENGTH   40

Definition at line 135 of file formdata.c.

#define CURL_OLDSTYLE   1 /* enable deprecated prototype for curl_formparse */

Definition at line 122 of file formdata.c.

#define FORM_FILE_SEPARATOR   ','

Definition at line 171 of file formdata.c.

#define FORM_TYPE_SEPARATOR   ';'

Definition at line 172 of file formdata.c.

#define HTTPPOST_CONTENTTYPE_DEFAULT   "application/octet-stream"

Definition at line 139 of file formdata.c.

Function Documentation

CURLFORMcode curl_formadd ( struct curl_httppost **  httppost,
struct curl_httppost **  last_post,
  ... 
)

Definition at line 978 of file formdata.c.

char* Curl_FormBoundary ( void  )

Definition at line 1031 of file formdata.c.

void Curl_formclean ( struct FormData form)

Definition at line 1060 of file formdata.c.

void curl_formfree ( struct curl_httppost form)

Definition at line 1073 of file formdata.c.

int Curl_FormInit ( struct Form form,
struct FormData formdata 
)

Definition at line 1281 of file formdata.c.

int curl_formparse ( char *  input,
struct curl_httppost **  httppost,
struct curl_httppost **  last_post 
)

Definition at line 383 of file formdata.c.

size_t Curl_FormReader ( char *  buffer,
size_t  size,
size_t  nitems,
FILE *  mydata 
)

Definition at line 1293 of file formdata.c.

size_t Curl_FormReadOneLine ( char *  buffer,
size_t  size,
size_t  nitems,
FILE *  mydata 
)

Definition at line 1339 of file formdata.c.

CURLcode Curl_getFormData ( struct FormData **  finalform,
struct curl_httppost post,
curl_off_t sizep 
)

Definition at line 1101 of file formdata.c.