diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-04 09:31:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-04 09:31:04 +0000 |
commit | 9e31a0536e7d0d5abe78673a6d384d2f7fc87bd5 (patch) | |
tree | ab365d81f9c3599c22204985a681eb7b78018352 | |
parent | 2960d37d7172976dff3eb8953fb4ca5f17b4bc47 (diff) |
removed more leftovers from the formparse function
-rw-r--r-- | lib/formdata.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index 967b1166d..7ad8a1fa3 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -127,36 +127,6 @@ Content-Disposition: form-data; name="FILECONTENT" extensions. */ #define HTTPPOST_CONTENTTYPE_DEFAULT "application/octet-stream" -/* This is a silly duplicate of the function in main.c to enable this source - to compile stand-alone for better debugging */ -static void GetStr(char **string, - const char *value) -{ - if(*string) - free(*string); - *string = strdup(value); -} - -/*************************************************************************** - * - * FormParse() - * - * Reads a 'name=value' paramter and builds the appropriate linked list. - * - * Specify files to upload with 'name=@filename'. Supports specified - * given Content-Type of the files. Such as ';type=<content-type>'. - * - * You may specify more than one file for a single name (field). Specify - * multiple files by writing it like: - * - * 'name=@filename,filename2,filename3' - * - * If you want content-types specified for each too, write them like: - * - * 'name=@filename;type=image/gif,filename2,filename3' - * - ***************************************************************************/ - #define FORM_FILE_SEPARATOR ',' #define FORM_TYPE_SEPARATOR ';' @@ -348,8 +318,7 @@ static int AllocAndCopy(char **buffer, size_t buffer_length) * * FormAdd() * - * Stores a 'name=value' formpost parameter and builds the appropriate - * linked list. + * Stores a formpost parameter and builds the appropriate linked list. * * Has two principal functionalities: using files and byte arrays as * post parts. Byte arrays are either copied or just the pointer is stored |