diff options
Diffstat (limited to 'Source/CTest/Curl/formdata.h')
-rw-r--r-- | Source/CTest/Curl/formdata.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/Source/CTest/Curl/formdata.h b/Source/CTest/Curl/formdata.h index 817c0d6..d1cc674 100644 --- a/Source/CTest/Curl/formdata.h +++ b/Source/CTest/Curl/formdata.h @@ -1,28 +1,28 @@ #ifndef __FORMDATA_H #define __FORMDATA_H -/***************************************************************************** +/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al. - * - * In order to be useful for every potential user, curl and libcurl are - * dual-licensed under the MPL and the MIT/X-derivate licenses. + * Copyright (C) 1998 - 2002, Daniel Stenberg, <daniel@haxx.se>, et al. * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is - * furnished to do so, under the terms of the MPL or the MIT/X-derivate - * licenses. You may pick one of these licenses. + * furnished to do so, under the terms of the COPYING file. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * * $Id$ - *****************************************************************************/ + ***************************************************************************/ /* plain and simple linked list with lines to send */ struct FormData { struct FormData *next; @@ -44,14 +44,23 @@ typedef struct FormInfo { long contentslength; char *contenttype; long flags; + + /* CMC: Added support for buffer uploads */ + char *buffer; /* pointer to existing buffer used for file upload */ + long bufferlength; + + char *showfilename; /* The file name to show. If not set, the actual + file name will be used */ struct curl_slist* contentheader; struct FormInfo *more; } FormInfo; int Curl_FormInit(struct Form *form, struct FormData *formdata ); -struct FormData *Curl_getFormData(struct HttpPost *post, - int *size); +CURLcode +Curl_getFormData(struct FormData **, + struct HttpPost *post, + int *size); /* fread() emulation */ int Curl_FormReader(char *buffer, |