mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
curl_formadd() adjustments by Georg Huettenegger
This commit is contained in:
parent
0452fd8657
commit
233b3f718f
@ -58,6 +58,7 @@ extern "C" {
|
|||||||
struct HttpPost {
|
struct HttpPost {
|
||||||
struct HttpPost *next; /* next entry in the list */
|
struct HttpPost *next; /* next entry in the list */
|
||||||
char *name; /* pointer to allocated name */
|
char *name; /* pointer to allocated name */
|
||||||
|
long namelength; /* length of name length */
|
||||||
char *contents; /* pointer to allocated data contents */
|
char *contents; /* pointer to allocated data contents */
|
||||||
long contentslength; /* length of contents field */
|
long contentslength; /* length of contents field */
|
||||||
char *contenttype; /* Content-Type */
|
char *contenttype; /* Content-Type */
|
||||||
@ -66,8 +67,10 @@ struct HttpPost {
|
|||||||
long flags; /* as defined below */
|
long flags; /* as defined below */
|
||||||
#define HTTPPOST_FILENAME (1<<0) /* specified content is a file name */
|
#define HTTPPOST_FILENAME (1<<0) /* specified content is a file name */
|
||||||
#define HTTPPOST_READFILE (1<<1) /* specified content is a file name */
|
#define HTTPPOST_READFILE (1<<1) /* specified content is a file name */
|
||||||
#define HTTPPOST_PTRCONTENTS (1<<2) /* contents is only stored pointer
|
#define HTTPPOST_PTRNAME (1<<2) /* name is only stored pointer
|
||||||
do not free in formfree */
|
do not free in formfree */
|
||||||
|
#define HTTPPOST_PTRCONTENTS (1<<3) /* contents is only stored pointer
|
||||||
|
do not free in formfree */
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef int (*curl_progress_callback)(void *clientp,
|
typedef int (*curl_progress_callback)(void *clientp,
|
||||||
@ -497,6 +500,8 @@ typedef enum {
|
|||||||
|
|
||||||
/* */
|
/* */
|
||||||
CFINIT(COPYNAME),
|
CFINIT(COPYNAME),
|
||||||
|
CFINIT(PTRNAME),
|
||||||
|
CFINIT(NAMELENGTH),
|
||||||
CFINIT(COPYCONTENTS),
|
CFINIT(COPYCONTENTS),
|
||||||
CFINIT(PTRCONTENTS),
|
CFINIT(PTRCONTENTS),
|
||||||
CFINIT(CONTENTSLENGTH),
|
CFINIT(CONTENTSLENGTH),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user