summaryrefslogtreecommitdiff
path: root/lib/formdata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-23 10:37:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-23 10:37:52 +0000
commit70e2aadc18fce9f6e3b9c06612c8314bf4f710b1 (patch)
tree2bb2451e6dff724f0488c7d62eecd8c107f2e642 /lib/formdata.h
parenta1c8aaf666ac64ac3a09bfff1f6eb4b6facfc953 (diff)
downloadcurl-70e2aadc18fce9f6e3b9c06612c8314bf4f710b1.tar.gz
Replaced Curl_FormReadOneLine with Curl_formpostheader as that is the only use
for it. It saves one extra copy of the header. I also added comments for several functions in formdata.c
Diffstat (limited to 'lib/formdata.h')
-rw-r--r--lib/formdata.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/formdata.h b/lib/formdata.h
index df6ae3ac0..d087fa7ca 100644
--- a/lib/formdata.h
+++ b/lib/formdata.h
@@ -65,11 +65,12 @@ size_t Curl_FormReader(char *buffer,
size_t nitems,
FILE *mydata);
-/* possible (old) fread() emulation that copies at most one line */
-size_t Curl_FormReadOneLine(char *buffer,
- size_t size,
- size_t nitems,
- FILE *mydata);
+/*
+ * Curl_formpostheader() returns the first line of the formpost, the
+ * request-header part (which is not part of the request-body like the rest of
+ * the post).
+ */
+char *Curl_formpostheader(void *formp, size_t *len);
char *Curl_FormBoundary(void);