History log of /curl/lib/formdata.c (Results 101 – 125 of 241)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f871de00 28-Dec-2012 Yang Tse

build: make use of 76 lib/*.h renamed files

76 private header files renamed to use our standard naming scheme.

This change affects 322 files in libcurl's source tree.


Revision tags: curl-7_28_1, curl-7_28_0, curl-7_27_0
# 6085ca2a 14-Jun-2012 Yang Tse

Fix bad failf() and info() usage

Calls to failf() are not supposed to provide trailing newline.
Calls to infof() must provide trailing newline.

Fixed 30 or so strings.


Revision tags: curl-7_26_0, curl-7_25_0, curl-7_24_0
# 1afbccc6 21-Dec-2011 Yang Tse

formdata.c: OOM handling fixes


Revision tags: curl-7_23_1, curl-7_23_0
# 840eff44 15-Oct-2011 Daniel Stenberg

formdata: ack read callback abort

When doing a multipart formpost with a read callback, and that callback
returns CURL_READFUNC_ABORT, that return code must be properly
propagated ba

formdata: ack read callback abort

When doing a multipart formpost with a read callback, and that callback
returns CURL_READFUNC_ABORT, that return code must be properly
propagated back and handled accordingly. Previously it would be handled
as a zero byte read which would cause a hang!

Added test case 587 to verify. It uses the lib554.c source code with a
small ifdef.

Reported by: Anton Bychkov
Bug: http://curl.haxx.se/mail/lib-2011-10/0097.html

show more ...


Revision tags: curl-7_22_0
# a5021071 05-Sep-2011 Yang Tse

fix bool variables checking and assignment


# 45d883d8 08-Aug-2011 Daniel Stenberg

CURLFORM_BUFFER: insert filename as documented

A regression where CURLFORM_BUFFER stopped to properly insert the file
name part in the formpart. Bug introduced in commit f851f768578dc096

CURLFORM_BUFFER: insert filename as documented

A regression where CURLFORM_BUFFER stopped to properly insert the file
name part in the formpart. Bug introduced in commit f851f768578dc096.

Added CURLFORM_BUFFER use to test 554 to verify this.

Bug: http://curl.haxx.se/mail/lib-2011-07/0176.html
Reported by: Henry Ludemann

show more ...


# f1586cb4 26-Jul-2011 Yang Tse

stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h


# 0337b871 25-Jul-2011 Yang Tse

time.h and sys/time.h inclusion conditionally done in setup_once.h


Revision tags: curl-7_21_7
# f851f768 17-Jun-2011 Daniel Stenberg

CURLFORM_STREAM: acknowledge CURLFORM_FILENAME

The CURLFORM_STREAM is documented to only insert a file name (and thus
look like a file upload) in the part if CURLFORM_FILENAME is set, bu

CURLFORM_STREAM: acknowledge CURLFORM_FILENAME

The CURLFORM_STREAM is documented to only insert a file name (and thus
look like a file upload) in the part if CURLFORM_FILENAME is set, but in
reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't
set, it would insert insert rubbish (or possibly crash).

This is now fixed to work as documented, and test 554 has been extended
to verify this.

Reported by: Sascha Swiercy
Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html

show more ...


# 0aedccc1 13-Jun-2011 Daniel Stenberg

curl_formget: fix FILE * leak

Properly deal with the fact that the last fread() call most probably is
a short read, and when using callbacks in fact all calls can be short
reads. No

curl_formget: fix FILE * leak

Properly deal with the fact that the last fread() call most probably is
a short read, and when using callbacks in fact all calls can be short
reads. No longer consider a file read done until it returns a 0 from the
read function.

Reported by: Aaron Orenstein
Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html

show more ...


# 85881f9f 13-Jun-2011 Daniel Stenberg

curl_formget: treat CURLFORM_STREAM better

If a piece is set to use a callback to get the data, it should not be
treated as data. It unfortunately also requires that curl_easy_perform()

curl_formget: treat CURLFORM_STREAM better

If a piece is set to use a callback to get the data, it should not be
treated as data. It unfortunately also requires that curl_easy_perform()
or similar has been used as otherwise the callback function hasn't been
figured out and curl_formget won't know how to get the content.

show more ...


# 0f7bea7c 10-Jun-2011 Daniel Stenberg

unittest: mark all unit tested functions

With "@unittest: [num]" in the header comment for each tested function.
Shows we have a log way to go still...


# 889d1e97 22-Apr-2011 Daniel Stenberg

whitespace cleanup: no space first in conditionals

"if(a)" is our style, not "if( a )"


Revision tags: curl-7_21_6
# b903186f 20-Apr-2011 Daniel Stenberg

source cleanup: unify look, style and indent levels

By the use of a the new lib/checksrc.pl script that checks that our
basic source style rules are followed.


# c828646f 19-Apr-2011 Daniel Stenberg

CURL_DOES_CONVERSIONS: cleanup

Massively reduce #ifdefs all over (23 #ifdef lines less so far)
Moved conversion-specific code to non-ascii.c


Revision tags: curl-7_21_5, curl-7_21_4, curl-7_21_3
# dc3e7df1 08-Nov-2010 Yang Tse

fix compiler warning


# e8c44295 20-Oct-2010 Daniel Stenberg

formdata: provide error message

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 fo

formdata: provide error message

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.

show more ...


Revision tags: curl-7_21_2, curl-7_21_1, curl-7_21_0, curl-7_20_1
# 2309b4e3 24-Mar-2010 Daniel Stenberg

remove the CVSish $Id$ lines


Revision tags: curl-7_20_0
# 33ce0ec1 22-Jan-2010 Daniel Stenberg

wrap long lines and do some indent policing


# 59939313 18-Nov-2009 Yang Tse

Make usage of calloc()'s arguments consistent with rest of code base


Revision tags: curl-7_19_7
# 6d4e6cc8 18-Oct-2009 Yang Tse

Check for basename() is now done the same as other function checks


# 0077a6d5 08-Oct-2009 Yang Tse

Attempt to silence bogus compiler warning: "Potential null pointer dereference"


# f2f45339 17-Sep-2009 Yang Tse

Moved Curl_rand() and Curl_srand() code from formdata.c and formdata.h
into curl_rand.c and curl_rand.h


Revision tags: curl-7_19_6
# c32cf33a 15-Jun-2009 Patrick Monnerat

Replaced use of standard C library rand()/srand() by our own pseudo-random number generator.


# 16ae283f 09-Jun-2009 Yang Tse

initialize fread callback pointer to avoid compiler warning


12345678910