aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2008-10-19Fixed potential memory leak in OOM situations. Detected by coverity.comDaniel Stenberg
2008-10-19dumpeasycode() uses warnf() which uses config->errors so we must not closeDaniel Stenberg
that before dumpeasycode() is called. Found by coverity.com
2008-10-19Removed dead code, identified by coverity.com.Daniel Stenberg
2008-10-17After having studied one of the coverity.com reports at length last night, IDaniel Stenberg
decided it was a good idea to properly document my thoughts in a comment near the code that was identified as a possible flaw. A false positive as far as I can see.
2008-10-16Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper functionDaniel Stenberg
used in strequal.c so now all test cases run fine for me again.
2008-10-15- Pascal Terjan filed bug #2154627Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl uses strcasecmp() in multiple places where it causes failures when the Turkish locale is used. This is because 'i' and 'I' isn't the same letter so strcasecmp() on those letters are different in Turkish than in English (or just about all other languages). I thus introduced a totally new internal function in libcurl (called Curl_ascii_equal) for doing case insentive comparisons for english-(ascii?) style strings that thus will make "file" and "FILE" match even if the Turkish locale is selected.
2008-10-13Prevent the accidental passing along NULL for the cases where the --traceDaniel Stenberg
options don't succeed in opening the target file etc. Detected by coverity.com
2008-10-09Update docs now that SFTP supports file ranges.Dan Fandrich
2008-09-30remove unnecessary typecast, otherwise triggering compiler warning:Yang Tse
dereferencing type-punned pointer will break strict-aliasing rules
2008-09-17Removed reference to curl-ca-bundle.crt in the host verification failureDan Fandrich
error message.
2008-09-13fix compiler warning: external declaration in primary source fileYang Tse
2008-09-10Checked in some code improvements and minor fixes that I discovered in theDan Fandrich
FreeBSD ports system.
2008-09-06remove unnecessary typecasting of malloc()Yang Tse
2008-09-05- Martin Drasar provided the CURLOPT_POSTREDIR patch. It renamesDaniel Stenberg
CURLOPT_POST301 (but adds a define for backwards compatibility for you who don't define CURL_NO_OLDIES). This option allows you to now also change the libcurl behavior for a HTTP response 302 after a POST to not use GET in the subsequent request (when CURLOPT_FOLLOWLOCATION is enabled). I edited the patch somewhat before commit. The curl tool got a matching --post302 option. Test case 1076 was added to verify this.
2008-09-04fix print formatting string directivesYang Tse
2008-09-04remove duplicate va_start() callYang Tse
2008-09-02in the --libcurl output, mention that the large file stuff is only needed forDaniel Stenberg
pre 7.19.0 libcurl-using apps
2008-08-28When not using large file support WIN32's lseek offset is a 'long'.Yang Tse
2008-08-26Fix default SIZEOF_OFF_T definition logicYang Tse
2008-08-26Use SIZEOF_OFF_T definition from config fileYang Tse
2008-08-22Fixed a problem when --dump-header - was given with more than one URL,Dan Fandrich
which caused an error when the second header was dumped due to stdout being closed. Added test case 1066 to verify. Also fixed a potential problem where a closed file descriptor might be used for an upload when more than one URL is given.
2008-08-22Reinstate struct_stat definition that got lost in previous commit.Yang Tse
2008-08-22Adjustments to better select/differentiate when large/small fileYang Tse
support is provided using WIN32 functions directly.
2008-08-14Use our CURL_LLONG_MAX and CURL_LLONG_MIN which are defined with the proper ↵Yang Tse
suffix.
2008-08-13The size of long is a build time characteristic and as such it is now recordedYang Tse
in curlbuild.h as CURL_SIZEOF_LONG. Definition now done from configure process and in CVS curlbuild.h.dist for non-configure systems.
2008-08-13Split comparison among several lines for debuggingYang Tse
2008-08-13Adjustment due to curl_off_t no longer following off_tYang Tse
2008-08-11 s/SIZEOF_CURL_OFF_T/CURL_SIZEOF_CURL_OFF_T/gYang Tse
2008-08-01Added support for --append on SFTP uploads. Unfortunately, OpenSSH doesn'tDan Fandrich
support this so it goes untested.
2008-07-31Fixed a couple of buffer overflows in the MS-DOS port of the curl tool.Dan Fandrich
Factored out unslashquote. Added some 'const's in function parameters.
2008-07-10--remote-name-allDaniel Stenberg
2008-06-26Honour --stderr with the -v option.Dan Fandrich
Fixed a file handle leak in the command line client if more than one --stderr option was given.
2008-06-19Fixed a memory leak in the command-line tool that caused a valgrind error.Dan Fandrich
2008-06-08- curl the tool now deals with its command line options somewhat differently!Daniel Stenberg
All boolean options (such as -O, -I, -v etc), both short and long versions, now always switch on/enable the option named. Using the same option multiple times thus make no difference. To switch off one of those options, you need to use the long version of the option and type --no-OPTION. Like to disable verbose mode you use --no-verbose! - Added --remote-name-all to curl, which if used changes the default for all given URLs to be dealt with as if -O is used. So if you want to disable that for a specific URL after --remote-name-all has been used, you muse use -o - or --no-remote-name.
2008-06-04Mention a few options that require an argument in --helpDan Fandrich
2008-06-01return CURLE_OK instead of CURLE_FAILED_INIT if PARAM_HEKP_REQUESTED ↵Marty Kuhrt
returned by getparameter
2008-04-25Made --stderr able to redirect all stderr messages.Dan Fandrich
2008-04-22Added support for running on Symbian OS.Dan Fandrich
2008-04-21Fixed typo in log messageDan Fandrich
2008-04-14- Brock Noland reported that curl behaved differently depending on which orderDaniel Stenberg
you used -i and -I.
2008-01-23STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO clone macrosYang Tse
2008-01-22check availability of poll.h header at configuration time, and includeYang Tse
it when sys/poll.h is unavailable
2008-01-19rephrased the --socks5-hostname help output somewhatDaniel Stenberg
2008-01-18to actually allow really big HTTP POSTs curl's postfieldsize type is changed toYang Tse
curl_off_t and CURLOPT_POSTFIELDSIZE_LARGE is used to pass value to libcurl
2008-01-17fix compiler warningYang Tse
2008-01-16fix handling of out of memory in the command line tool that afectedYang Tse
data url encoded HTTP POSTs when reading it from a file.
2008-01-13fix compiler warningYang Tse
2008-01-12I re-arranged the curl --help output. All the options are now sorted onDaniel Stenberg
their long option names and all descriptions are one-liners.
2008-01-12Eric Landes provided the patch (edited by me) that introduces theDaniel Stenberg
--keepalive-time to curl to set the keepalive probe interval. I also took the opportunity to rename the recently added no-keep-alive option to no-keepalive to keep a consistent naming and to avoid getting two dashes in these option names. Eric also provided an update to the man page for the new option.
2008-01-11I made the curl tool switch from using CURLOPT_IOCTLFUNCTION to now use theDaniel Stenberg
spanking new CURLOPT_SEEKFUNCTION simply to take advantage of the improved performance for the upload resume cases where you want to upload the last few bytes of a very large file. To implement this decently, I had to switch the client code for uploading from fopen()/fread() to plain open()/read() so that we can use lseek() to do >32bit seeks (as fseek() doesn't allow that) on systems that offer support for that.