aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
AgeCommit message (Collapse)Author
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
2003-04-04Changed how boundary strings are generated. This new way uses 28 dashesDaniel Stenberg
and 12 following hexadecimal letters, which seems to be what IE uses. This makes curl work smoother with more stupidly written server apps. Worked this out together with Martijn Broenland.
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-11-29let the Curl_FormReader() return 0 when it reaches end of data to that theDaniel Stenberg
chunked transfer work
2002-10-28kromJx@crosswinds.net's fix that now uses checkprefix() instead ofDaniel Stenberg
strnequal() when the third argument was strlen(first argument) anyway. This makes it less prone to errors. (Slightly edited by me)
2002-10-28prevent compiler warningDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-06-12Chris Combes added CURLFORM_BUFFER, CURLFORM_BUFFERPTR, CURLFORM_BUFFERLENGTHDaniel Stenberg
2002-06-11added disable-[protocol] support, largely provided by Miklos NemethDaniel Stenberg
2002-05-21curl_formadd() now returns 'CURLFORMcode' instead of int, to better enableDaniel Stenberg
checking for particular errors. curl/curl.h defines the errros
2002-04-15This makes formposting with a specified file missing fail. curl_easy_performDaniel Stenberg
will then return CURLE_READ_ERROR.
2002-04-03Tor Arntsen's fix for "CGI_Lite" compliance!Daniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2002-03-19made it pass stricter compiler flags with less warningsDaniel Stenberg
2002-03-13now supports all options in arrays, except the CURLFORM_ARRAY itselfDaniel Stenberg
2002-03-11Added support for CURLFORM_FILENAME to set the filename field of a fileDaniel Stenberg
part.
2002-02-06ARGH the CRLF I removed recently was not only done after the initialDaniel Stenberg
content-type header, it was used for each part and thus without this it failed MISERABLY. *smacks forhead*
2002-01-29removed three loust fprintf()sDaniel Stenberg
removed the initial CRLF in the formpost, as they are part of the request and should be written by the code in http.c!
2002-01-19#505514, as correctly pointed out by Antonio (anton@concord.ru), trying toDaniel Stenberg
post a non-existing file should include nothing, not an error text!