aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
AgeCommit message (Collapse)Author
2007-01-27update copyright year noticeYang Tse
2007-01-14- David McCreedy provided libcurl changes for doing HTTP communication onDaniel Stenberg
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.
2006-08-29Avoid Metaware's High-C warning "'=' encountered where '==' may have been ↵Gisle Vanem
intended."
2006-07-27Yves Lejeune fixed so that replacing Content-Type: when doing multipartDaniel Stenberg
formposts work exactly the way you want it (and the way you'd assume it works)
2006-07-20David McCreedy fixed a build error when building libcurl with HTTP disabled,Daniel Stenberg
problem added with the curl_formget() patch.
2006-06-28fix minor compiler warningYang Tse
2006-06-24Michael Wallner added curl_formget(), which allows an application to extractDaniel Stenberg
(serialise) a previously built formpost (as with curl_formadd()).
2006-04-26Fixed signed/unsigned convertion errors in Salford-C.Gisle Vanem
#ifdef around WSAEDISCON in strerror.c.
2005-11-24Yang Tse: fix compilation errors when SSL is not disabled and HTTP isDaniel Stenberg
disabled
2005-05-02corrected copyright yearDaniel Stenberg
2005-04-26Cory Nelson's work on nuking compiler warnings when building on x64 withDaniel Stenberg
VS2005.
2004-12-22C ensures that static variables are initialized to 0Dan Fandrich
2004-12-16moved the lseek() and stat() magic defines to setup.h and now take advantageDaniel Stenberg
of struct_stat in formdata.c as well, to support formpost uploads of large files on Windows too
2004-12-15Add 'const' to immutable arrays.Dan Fandrich
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-24Mohun Biswas found out that formposting a zero-byte file didn't work veryDaniel Stenberg
good. I fixed.
2004-10-08if basename was found, check for a prototype and if none was found, provideDaniel Stenberg
our own in the formdata.c file to prevent warnings on systems without it
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-10-05Only include libgen.h if we have a basename as well.Daniel Stenberg
Mainly meant to deal with the IRIX case which seems to requrie a "-lgen" lib to find the basename function and thus without the gen lib, it finds the header but not the function and our replacement function has a prototype that doesn't match the IRIX one. A different approach would be to make configure detect and use -lgen for the systems that require it.
2004-10-05let our basename() be staticDaniel Stenberg
2004-10-01someone should hit meDaniel Stenberg
2004-10-01fixed the basename() replacement, reported by GisleDaniel Stenberg
2004-10-01- Based on Fedor Karpelevitch's formpost path basename patch, file parts inDaniel Stenberg
formposts no longer include the path part. If you _really_ want them, you must provide your preferred full file name with CURLFORM_FILENAME. Added detection for libgen.h and basename() to configure. My custom basename() replacement function for systems without it, might be a bit too naive... Updated 6 test cases to make them work with the stripped paths.
2004-06-24Replaced all uses of sprintf() with the safer snprintf(). It is just aDaniel Stenberg
precaution to prevent mistakes to lead to buffer overflows.
2004-06-24Source cleanups. The major one being that we now _always_ use a Curl_addrinfoDaniel Stenberg
linked list for name resolved data, even on hosts/systems with only IPv4 stacks as this simplifies a lot of code.
2004-06-14Allow formposting of files larger than what fits in memory by not reading theDaniel Stenberg
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.
2004-06-13provide curl_formfree() even when http is disabled, it does nothing thenDaniel Stenberg
2004-06-10build again with disabled httpDaniel Stenberg
2004-06-09when built with HTTP disabled, provide a curl_formadd() function anyway toDaniel Stenberg
keep the API complete at all times
2004-06-03deleted trailing whitespaceDaniel Stenberg
2004-05-13mark a value as alloced when strdup()ed to prevent memory leaksDaniel Stenberg
2004-05-12improved cleaning up in case of memory allocation failuresDaniel Stenberg
2004-05-12Left-over from before the return-code fix. This is probably the code thatDaniel Stenberg
causes xlc and gcc act differently on AIX.
2004-05-11clear up memory on failure a little betterDaniel Stenberg
2004-05-11Make this source code use our internal *printf().Daniel Stenberg
Also some minor edits.
2004-05-10James Bursa added better error checking for failer memory calls whenDaniel Stenberg
building formposts
2004-05-07count the formdata size using a 64bit size if avaialbleDaniel Stenberg
2004-05-04removed more leftovers from the formparse functionDaniel Stenberg
2004-05-04removed curl_formparse() from the libraryDaniel Stenberg
2004-04-23only a minor comment/format changeDaniel Stenberg
2004-04-23Replaced Curl_FormReadOneLine with Curl_formpostheader as that is the only useDaniel Stenberg
for it. It saves one extra copy of the header. I also added comments for several functions in formdata.c
2004-03-12more variable type fixing for the huge postsDaniel Stenberg
2004-03-03some more size_t usage, and two added typecasts when converting from size_tDaniel Stenberg
to long (MIPSpro warnings)
2004-02-27fixed some more size_t/int/long warnings and removed a few CMC commentsDaniel Stenberg
2004-02-26Clear up int/long/size_t/ssize_t usage a bitDaniel Stenberg
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-11-13Default Content-Type for formparts has changed to "application/octet-stream".Daniel Stenberg
This seems more appropriate, and I believe mozilla and the likes do this. .html files now get text/html as Content-Type. Pointed out in bug report #839806.
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-04-15treat uploaded .html files as text/html by defaultDaniel Stenberg