aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-28 08:55:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-28 08:55:59 +0000
commit233b3f718fb7d5dba34ad95b5946af958947e451 (patch)
tree89479f25bdeeb5b6d224a64ff4c74556f16e698d /include
parent0452fd86573a75437c6886639de77a7747685d36 (diff)
curl_formadd() adjustments by Georg Huettenegger
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 0c92d7395..2b93f64f2 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -58,6 +58,7 @@ extern "C" {
struct HttpPost {
struct HttpPost *next; /* next entry in the list */
char *name; /* pointer to allocated name */
+ long namelength; /* length of name length */
char *contents; /* pointer to allocated data contents */
long contentslength; /* length of contents field */
char *contenttype; /* Content-Type */
@@ -66,8 +67,10 @@ struct HttpPost {
long flags; /* as defined below */
#define HTTPPOST_FILENAME (1<<0) /* 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
- do not free in formfree */
+#define HTTPPOST_PTRNAME (1<<2) /* name is only stored pointer
+ 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,
@@ -497,6 +500,8 @@ typedef enum {
/* */
CFINIT(COPYNAME),
+ CFINIT(PTRNAME),
+ CFINIT(NAMELENGTH),
CFINIT(COPYCONTENTS),
CFINIT(PTRCONTENTS),
CFINIT(CONTENTSLENGTH),