summaryrefslogtreecommitdiff
path: root/lib/formdata.h
Commit message (Collapse)AuthorAgeFilesLines
* mime: unified to use the typedef'd mime structs everywhereDaniel Stenberg2017-09-051-1/+1
| | | | ... and slightly edited to follow our code style better.
* mime: new MIME API.Patrick Monnerat2017-09-021-51/+3
| | | | | | | Available in HTTP, SMTP and IMAP. Deprecates the FORM API. See CURLOPT_MIMEPOST. Lib code and associated documentation.
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-241-1/+1
|
* formpost: avoid silent snprintf() truncationDaniel Stenberg2016-10-081-0/+1
| | | | | | | | | | The previous use of snprintf() could make libcurl silently truncate some input data and not report that back on overly large input, which could make data get sent over the network in a bad format. Example: $ curl --form 'a=b' -H "Content-Type: $(perl -e 'print "A"x4100')"
* internals: rename the SessionHandle struct to Curl_easyDaniel Stenberg2016-06-221-2/+2
|
* code: style updatesDaniel Stenberg2016-04-031-2/+2
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* formadd: support >2GB files on windowsDaniel Stenberg2015-11-021-2/+2
| | | | Closes #425
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: rename 76 lib/*.h filesYang Tse2012-12-281-98/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 76 private header files renamed to use our standard naming scheme. This commit only does the file renaming. ---------------------------------------- renamed: amigaos.h -> curl_amigaos.h renamed: arpa_telnet.h -> curl_arpa_telnet.h renamed: asyn.h -> curl_asyn.h renamed: axtls.h -> curl_axtls.h renamed: bundles.h -> curl_bundles.h renamed: conncache.h -> curl_conncache.h renamed: connect.h -> curl_connect.h renamed: content_encoding.h -> curl_content_encoding.h renamed: cookie.h -> curl_cookie.h renamed: cyassl.h -> curl_cyassl.h renamed: dict.h -> curl_dict.h renamed: easyif.h -> curl_easyif.h renamed: escape.h -> curl_escape.h renamed: file.h -> curl_file.h renamed: fileinfo.h -> curl_fileinfo.h renamed: formdata.h -> curl_formdata.h renamed: ftp.h -> curl_ftp.h renamed: ftplistparser.h -> curl_ftplistparser.h renamed: getinfo.h -> curl_getinfo.h renamed: gopher.h -> curl_gopher.h renamed: gtls.h -> curl_gtls.h renamed: hash.h -> curl_hash.h renamed: hostcheck.h -> curl_hostcheck.h renamed: hostip.h -> curl_hostip.h renamed: http.h -> curl_http.h renamed: http_chunks.h -> curl_http_chunks.h renamed: http_digest.h -> curl_http_digest.h renamed: http_negotiate.h -> curl_http_negotiate.h renamed: http_proxy.h -> curl_http_proxy.h renamed: if2ip.h -> curl_if2ip.h renamed: imap.h -> curl_imap.h renamed: inet_ntop.h -> curl_inet_ntop.h renamed: inet_pton.h -> curl_inet_pton.h renamed: krb4.h -> curl_krb4.h renamed: llist.h -> curl_llist.h renamed: memdebug.h -> curl_memdebug.h renamed: multiif.h -> curl_multiif.h renamed: netrc.h -> curl_netrc.h renamed: non-ascii.h -> curl_non-ascii.h renamed: nonblock.h -> curl_nonblock.h renamed: nssg.h -> curl_nssg.h renamed: parsedate.h -> curl_parsedate.h renamed: pingpong.h -> curl_pingpong.h renamed: polarssl.h -> curl_polarssl.h renamed: pop3.h -> curl_pop3.h renamed: progress.h -> curl_progress.h renamed: qssl.h -> curl_qssl.h renamed: rawstr.h -> curl_rawstr.h renamed: rtsp.h -> curl_rtsp.h renamed: select.h -> curl_select.h renamed: sendf.h -> curl_sendf.h renamed: setup.h -> curl_setup.h renamed: setup_once.h -> curl_setup_once.h renamed: share.h -> curl_share.h renamed: slist.h -> curl_slist.h renamed: smtp.h -> curl_smtp.h renamed: sockaddr.h -> curl_sockaddr.h renamed: socks.h -> curl_socks.h renamed: speedcheck.h -> curl_speedcheck.h renamed: splay.h -> curl_splay.h renamed: ssh.h -> curl_ssh.h renamed: sslgen.h -> curl_sslgen.h renamed: ssluse.h -> curl_ssluse.h renamed: strdup.h -> curl_strdup.h renamed: strequal.h -> curl_strequal.h renamed: strerror.h -> curl_strerror.h renamed: strtok.h -> curl_strtok.h renamed: strtoofft.h -> curl_strtoofft.h renamed: telnet.h -> curl_telnet.h renamed: tftp.h -> curl_tftp.h renamed: timeval.h -> curl_timeval.h renamed: transfer.h -> curl_transfer.h renamed: url.h -> curl_url.h renamed: urldata.h -> curl_urldata.h renamed: warnless.h -> curl_warnless.h renamed: wildcard.h -> curl_wildcard.h ----------------------------------------
* formdata: provide error messageDaniel Stenberg2010-10-201-6/+6
| | | | | | | | | | When failing to build form post due to an error, the code now does a proper failf(). Previously libcurl would report an error like "failed creating formpost data" when a file wasn't possible to open which was not easy for users to figure out. I also lower cased a function name to be named more curl-style and removed some unnecessary code.
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Moved Curl_rand() and Curl_srand() code from formdata.c and formdata.hYang Tse2009-09-171-9/+4
| | | | into curl_rand.c and curl_rand.h
* Replaced use of standard C library rand()/srand() by our own pseudo-random ↵Patrick Monnerat2009-06-151-0/+3
| | | | number generator.
* - Added CURLFORM_STREAM as a supported option to curl_formadd() to allow anDaniel Stenberg2008-03-311-3/+7
| | | | | | | application to provide data for a multipart with the read callback. Note that the size needs to be provided with CURLFORM_CONTENTSLENGTH when the stream option is used. This feature is verified by the new test case 554. This feature was sponsored by Xponaut.
* update copyright year noticeYang Tse2007-01-271-1/+1
|
* - David McCreedy provided libcurl changes for doing HTTP communication onDaniel Stenberg2007-01-141-3/+7
| | | | | | 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.
* Yves Lejeune fixed so that replacing Content-Type: when doing multipartDaniel Stenberg2006-07-271-1/+2
| | | | | formposts work exactly the way you want it (and the way you'd assume it works)
* Allow formposting of files larger than what fits in memory by not reading theDaniel Stenberg2004-06-141-7/+15
| | | | | | file until it is actually being uploaded. Make sure we build and still work with HTTP disabled - the SSL code might use the boundary string for some random seeding.
* improved cleaning up in case of memory allocation failuresDaniel Stenberg2004-05-121-0/+2
|
* clear up memory on failure a little betterDaniel Stenberg2004-05-111-0/+2
|
* Replaced Curl_FormReadOneLine with Curl_formpostheader as that is the only useDaniel Stenberg2004-04-231-5/+6
| | | | | | for it. It saves one extra copy of the header. I also added comments for several functions in formdata.c
* more variable type fixing for the huge postsDaniel Stenberg2004-03-121-1/+1
|
* Clear up int/long/size_t/ssize_t usage a bitDaniel Stenberg2004-02-261-18/+15
|
* use the proper type for formposts, not the deprecated oneDaniel Stenberg2004-01-221-1/+1
|
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|
* Chris Combes added CURLFORM_BUFFER, CURLFORM_BUFFERPTR, CURLFORM_BUFFERLENGTHDaniel Stenberg2002-06-121-0/+4
|
* This makes formposting with a specified file missing fail. curl_easy_performDaniel Stenberg2002-04-151-2/+4
| | | | will then return CURLE_READ_ERROR.
* copyright string (year) updateDaniel Stenberg2002-03-191-1/+1
|
* Added support for CURLFORM_FILENAME to set the filename field of a fileDaniel Stenberg2002-03-111-1/+4
| | | | part.
* Marcus Webster's newly added CURLFORM_CONTENTHEADERDaniel Stenberg2001-12-141-0/+1
|
* Georg Huettenegger's fixes and improvements to curl_formadd()Daniel Stenberg2001-08-281-0/+11
|
* Georg Huettenegger's patch curl-7.8.1-pre5-patch-20010819Daniel Stenberg2001-08-211-0/+7
|
* Curl_FormFree renamed to Curl_formclean, as it turns out VMS for exampleDaniel Stenberg2001-08-061-1/+1
| | | | | requires all global symbols to be *case insentively* unique! curl_formfree is a global function we shouldn't touch.
* Internal symbols that aren't static are now prefixed with 'Curl_'Daniel Stenberg2001-01-051-13/+9
|
* dual-license fixDaniel Stenberg2001-01-031-59/+11
|
* haxx.nu => haxx.seDaniel Stenberg2000-06-201-5/+8
|
* syncing with local editDaniel Stenberg2000-01-101-2/+2
|
* Initial revisionDaniel Stenberg1999-12-291-0/+103