added new curl_formadd() stuff
This commit is contained in:
@@ -512,13 +512,23 @@ typedef enum {
|
|||||||
CFINIT(COPYCONTENTS),
|
CFINIT(COPYCONTENTS),
|
||||||
CFINIT(PTRCONTENTS),
|
CFINIT(PTRCONTENTS),
|
||||||
CFINIT(CONTENTSLENGTH),
|
CFINIT(CONTENTSLENGTH),
|
||||||
|
CFINIT(FILECONTENT),
|
||||||
|
CFINIT(ARRAY),
|
||||||
|
CFINIT(ARRAY_START), /* below are the options allowed within a array */
|
||||||
CFINIT(FILE),
|
CFINIT(FILE),
|
||||||
CFINIT(CONTENTTYPE),
|
CFINIT(CONTENTTYPE),
|
||||||
CFINIT(END),
|
CFINIT(END),
|
||||||
|
CFINIT(ARRAY_END), /* up are the options allowed within a array */
|
||||||
|
|
||||||
CURLFORM_LASTENTRY /* the last unusued */
|
CURLFORM_LASTENTRY /* the last unusued */
|
||||||
} CURLformoption;
|
} CURLformoption;
|
||||||
|
|
||||||
|
/* structure to be used as parameter for CURLFORM_ARRAY */
|
||||||
|
struct curl_forms {
|
||||||
|
CURLformoption option;
|
||||||
|
const char *value;
|
||||||
|
};
|
||||||
|
|
||||||
/* new external form function */
|
/* new external form function */
|
||||||
int curl_formadd(struct HttpPost **httppost,
|
int curl_formadd(struct HttpPost **httppost,
|
||||||
struct HttpPost **last_post,
|
struct HttpPost **last_post,
|
||||||
@@ -548,8 +558,8 @@ CURLcode curl_global_init(long flags);
|
|||||||
void curl_global_cleanup(void);
|
void curl_global_cleanup(void);
|
||||||
|
|
||||||
/* This is the version number */
|
/* This is the version number */
|
||||||
#define LIBCURL_VERSION "7.9"
|
#define LIBCURL_VERSION "7.9.1-pre1"
|
||||||
#define LIBCURL_VERSION_NUM 0x070900
|
#define LIBCURL_VERSION_NUM 0x070901
|
||||||
|
|
||||||
/* linked-list structure for the CURLOPT_QUOTE option (and other) */
|
/* linked-list structure for the CURLOPT_QUOTE option (and other) */
|
||||||
struct curl_slist {
|
struct curl_slist {
|
||||||
|
|||||||
Reference in New Issue
Block a user