aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2009-05-01David McCreedy's "TPF-platform specific changes to various files" patchYang Tse
2009-04-28- Bug report #2709004 (http://curl.haxx.se/bug/view.cgi?id=2709004) by TimDaniel Stenberg
Chen pointed out how curl couldn't upload with resume when reading from a pipe. This ended up with the introduction of a new return code for the CURLOPT_SEEKFUNCTION callback that basically says that the seek failed but that libcurl may try to resolve the situation anyway. In our case this means libcurl will attempt to instead read that much data from the stream instead of seeking and that way curl can now upload with resume when data is read from a stream!
2009-04-20- Gisle Vanem noticed that --libtool would produce bogus strings at times forDaniel Stenberg
OBJECTPOINT options. Now we've introduced a new function - my_setopt_str - within the app for setting plain string options to avoid the risk of this mistake happening.
2009-03-11Oops, make the memory magic debug stuff done before global init too just toDaniel Stenberg
catch them all. The memory debug stuff is not in the public API anyway.
2009-03-11- Kamil Dudka made the curl tool properly call curl_global_init() before anyDaniel Stenberg
other libcurl function.
2009-03-08- Bill Egert pointed out (http://curl.haxx.se/bug/view.cgi?id=2671602) thatDaniel Stenberg
curl didn't use sprintf() in a way that is documented to work in POSIX but since we use our own printf() code (from libcurl) that shouldn't be a problem. Nonetheless I modified the code to not rely on such particular features and to not cause further raised eyebrowse with no good reason.
2009-02-17- CURLOPT_FTP_CREATE_MISSING_DIRS can now be set to 2 in addition to 1 forDaniel Stenberg
plain FTP connections, and it will then allow MKD to fail once and retry the CWD afterwards. This is especially useful if you're doing many simultanoes connections against the same server and they all have this option enabled, as then CWD may first fail but then another connection does MKD before this connection and thus MKD fails but trying CWD works! The numbers can (should?) now be set with the convenience enums now called CURLFTP_CREATE_DIR and CURLFTP_CREATE_DIR_RETRY. Tests has proven that if you're making an application that uploads a set of files to an ftp server, you will get a noticable gain in speed if you're using multiple connections and this option will be then be very useful.
2009-02-05Added an explicit buffer limit check in msdosify() (patch based on FreeBSD).Dan Fandrich
This couldn't ever overflow in curl, but might if the code were used elsewhere or under different conditions.
2009-02-02- Craig A West brought us: libcurl now defaults to do CONNECT with HTTPDaniel Stenberg
version 1.1 instead of 1.0 like before. This change also introduces the new proxy type for libcurl called 'CURLPROXY_HTTP_1_0' that then allows apps to switch (back) to CONNECT 1.0 requests. The curl tool also got a --proxy1.0 option that works exactly like --proxy but sets CURLPROXY_HTTP_1_0. I updated all test cases cases that use CONNECT and I tried to do some using --proxy1.0 and some updated to do CONNECT 1.1 to get both versions run.
2009-01-28- Markus Moeller introduced two new options to libcurl:Daniel Stenberg
CURLOPT_SOCKS5_GSSAPI_SERVICE and CURLOPT_SOCKS5_GSSAPI_NEC to allow libcurl to do GSS-style authentication with SOCKS5 proxies. The curl tool got the options called --socks5-gssapi-service and --socks5-gssapi-nec to enable these.
2009-01-25- Craig A West brought CURLOPT_NOPROXY and the corresponding --noproxy option.Daniel Stenberg
They basically offer the same thing the NO_PROXY environment variable only offered previously: list a set of host names that shall not use the proxy even if one is specified.
2009-01-07Created a CURLMIN macro to match CURLMAXDan Fandrich
2008-12-16Added the use of Watt-32 tcp/ip stack for Win32 targets.Gisle Vanem
Added USE_WATT32 unconditionally for MSDOS targets since it's the only option. Adjusted the text for '--wdebug'.
2008-11-14check for NULL returns from strdup() - reported by Jim MeyeringDaniel Stenberg
also prevent buffer overflow on MSDOS when you do for example -O on a url with a file name part longer than PATH_MAX letters
2008-10-28curlx.h isn't a system include file so it gets double quotesDan Fandrich
2008-10-24fix compiler warningYang Tse
2008-10-23moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_Daniel Stenberg
inclusion by the curl tool without colliding with the curl_strequal functions.
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