#include "curl_setup.h"
#include <curl/curl.h>
#include "mime.h"
#include "non-ascii.h"
#include "rand.h"
#include "slist.h"
#include "strcase.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Go to the source code of this file.
Macros | |
#define | basename(x) Curl_basename((x)) |
#define | DISPOSITION_DEFAULT "attachment" |
#define | FILE_CONTENTTYPE_DEFAULT "application/octet-stream" |
#define | filesize(name, stat_data) (stat_data.st_size) |
#define | fopen_read fopen |
#define | MULTIPART_CONTENTTYPE_DEFAULT "multipart/mixed" |
#define | QP_CR 3 /* Carriage return. */ |
#define | QP_LF 4 /* Line-feed. */ |
#define | QP_OK 1 /* Can be represented by itself. */ |
#define | QP_SP 2 /* Space or tab. */ |
#define | READ_ERROR ((size_t) -1) |
Variables | |
static const char | aschex [] |
static const char | base64 [] |
static const mime_encoder | encoders [] |
static const unsigned char | qp_class [] |
#define basename | ( | x | ) | Curl_basename((x)) |
|
static |
|
static |
|
static |
|
static |
CURLcode Curl_mime_add_header | ( | struct curl_slist ** | slp, |
const char * | fmt, | ||
... | |||
) |
curl_mimepart* curl_mime_addpart | ( | curl_mime * | mime | ) |
void Curl_mime_cleanpart | ( | curl_mimepart * | part | ) |
CURLcode curl_mime_data | ( | curl_mimepart * | part, |
const char * | data, | ||
size_t | datasize | ||
) |
CURLcode curl_mime_data_cb | ( | curl_mimepart * | part, |
curl_off_t | datasize, | ||
curl_read_callback | readfunc, | ||
curl_seek_callback | seekfunc, | ||
curl_free_callback | freefunc, | ||
void * | arg | ||
) |
CURLcode curl_mime_encoder | ( | curl_mimepart * | part, |
const char * | encoding | ||
) |
CURLcode curl_mime_filedata | ( | curl_mimepart * | part, |
const char * | filename | ||
) |
CURLcode curl_mime_filename | ( | curl_mimepart * | part, |
const char * | filename | ||
) |
CURLcode curl_mime_headers | ( | curl_mimepart * | part, |
struct curl_slist * | headers, | ||
int | take_ownership | ||
) |
void Curl_mime_initpart | ( | curl_mimepart * | part, |
struct Curl_easy * | easy | ||
) |
CURLcode curl_mime_name | ( | curl_mimepart * | part, |
const char * | name | ||
) |
CURLcode Curl_mime_prepare_headers | ( | curl_mimepart * | part, |
const char * | contenttype, | ||
const char * | disposition, | ||
enum mimestrategy | strategy | ||
) |
CURLcode Curl_mime_rewind | ( | curl_mimepart * | part | ) |
curl_off_t Curl_mime_size | ( | curl_mimepart * | part | ) |
CURLcode curl_mime_subparts | ( | curl_mimepart * | part, |
curl_mime * | subparts | ||
) |
CURLcode curl_mime_type | ( | curl_mimepart * | part, |
const char * | mimetype | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |