summaryrefslogtreecommitdiff
path: root/lib/formdata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-14 14:57:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-14 14:57:51 +0000
commit0fb5a65a58130da7882f0a8d396e24b95c25064f (patch)
treed6c39e8a01c8815f724c47005d7a7409fe678ab7 /lib/formdata.h
parentc8afb02b4cf51038e84edec13fb52a6ad149d044 (diff)
downloadgnurl-0fb5a65a58130da7882f0a8d396e24b95c25064f.tar.gz
gnurl-0fb5a65a58130da7882f0a8d396e24b95c25064f.tar.bz2
gnurl-0fb5a65a58130da7882f0a8d396e24b95c25064f.zip
- David McCreedy provided libcurl changes for doing HTTP communication on
non-ASCII platforms. It does add some complexity, most notably with more #ifdefs, but I want to see this supported added and I can't see how we can add it without the extra stuff added.
Diffstat (limited to 'lib/formdata.h')
-rw-r--r--lib/formdata.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/formdata.h b/lib/formdata.h
index 304d009ed..0cac4ac27 100644
--- a/lib/formdata.h
+++ b/lib/formdata.h
@@ -25,8 +25,10 @@
***************************************************************************/
enum formtype {
- FORM_DATA, /* regular data */
- FORM_FILE /* 'line' points to a file name we should read from */
+ FORM_DATA, /* form metadata (convert to network encoding if necessary) */
+ FORM_CONTENT, /* form content (never convert) */
+ FORM_FILE /* 'line' points to a file name we should read from
+ to create the form data (never convert) */
};
/* plain and simple linked list with lines to send */
@@ -87,7 +89,9 @@ char *Curl_formpostheader(void *formp, size_t *len);
char *Curl_FormBoundary(void);
-void Curl_formclean(struct FormData *);
+void Curl_formclean(struct FormData **);
+
+CURLcode Curl_formconvert(struct SessionHandle *, struct FormData *);
#endif