]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
removed more leftovers from the formparse function
authorDaniel Stenberg <daniel@haxx.se>
Tue, 4 May 2004 09:31:04 +0000 (09:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 May 2004 09:31:04 +0000 (09:31 +0000)
lib/formdata.c

index 967b1166d7b5068a98c152ff3e02225225dbd3ce..7ad8a1fa380e500e0c798063bfe8586b72a514ac 100644 (file)
@@ -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