aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
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.
2008-01-10Georg Lippitsch brought CURLOPT_SEEKFUNCTION and CURLOPT_SEEKDATA to allowDaniel Stenberg
libcurl to seek in a given input stream. This is particularly important when doing upload resumes when there's already a huge part of the file present remotely. Before, and still if this callback isn't used, libcurl will read and through away the entire file up to the point to where the resuming begins (which of course can be a slow opereration depending on file size, I/O bandwidth and more). This new function will also be preferred to get used instead of the CURLOPT_IOCTLFUNCTION for seeking back in a stream when doing multi-stage HTTP auth with POST/PUT.
2008-01-09fix compiler warningYang Tse
2008-01-06Richard Atterer reverted back what I missed in my previous revert ;-)Daniel Stenberg
2008-01-05Based on further discussion on curl-library, I reverted yesterday's SOCKS5Daniel Stenberg
code to instead introduce support for a new proxy type called CURLPROXY_SOCKS5_HOSTNAME that is used to send the host name to the proxy instead of IP address and there's thus no longer any need for a new curl_easy_setopt() option. The default SOCKS5 proxy is again back to sending the IP address to the proxy. The new curl command line option for enabling sending host name to a SOCKS5 proxy is now --socks5-hostname.
2008-01-05Don't abort operation when attempting to set SO_KEEPALIVEYang Tse
fails, just issue a warning and ignore the failure.
2008-01-04Based on Maxim Perenesenko's patch, we now do SOCKS5 operations and let theDaniel Stenberg
proxy do the host name resolving and only if --socks5ip (or CURLOPT_SOCKS5_RESOLVE_LOCAL) is used we resolve the host name locally and pass on the IP address only to the proxy.
2008-01-02Richard Atterer brought a patch that added support for SOCKS4a proxies, whichDaniel Stenberg
is an inofficial PROXY4 variant that sends the hostname to the proxy instead of the resolved address (which is already supported by SOCKS5). --socks4a is the curl command line option for it and CURLOPT_PROXYTYPE can now be set to CURLPROXY_SOCKS4A as well.
2008-01-01Mohun Biswas pointed out that --libcurl generated a source code with an intDaniel Stenberg
function but without a return statement. While fixing that, I also took care about adding some better comments for the generated code.
2007-12-18(http://curl.haxx.se/mail/archive-2007-12/0039.html) reported and fixedYang Tse
a file truncation problem on Windows build targets triggered when retrying a download with curl.
2007-12-13Fix compiler warningYang Tse
2007-12-12Gilles Blanc made the curl tool enable SO_KEEPALIVE for the connections andDaniel Stenberg
added the --no-keep-alive option that can disable that on demand.
2007-12-08fix a crash in oom situations (thanks runtests.pl -t!)Daniel Stenberg
2007-11-26#1 fixed --data-urlencode when no = or @ was usedDaniel Stenberg
#2 extended the user-agent buffer since I hit the 128 byte boundary!
2007-11-22make nlen a size_t to better hold diffs between pointers etcDaniel Stenberg
2007-11-22Alessandro Vesely helped me improve the --data-urlencode's syntax, parserDaniel Stenberg
and documentation.
2007-11-20Introuced --data-urlencode to the curl tool for easier url encoding of theDaniel Stenberg
data sent in a post.
2007-11-15Replace isgraph with our uppercase macro versionYang Tse
2007-10-03Based on a patch brought by Johnny Luong, libcurl now offersDaniel Stenberg
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 and the curl tool --hostpubmd5. They both make the SCP or SFTP connection verify the remote host's md5 checksum of the public key before doing a connect, to reduce the risk of a man-in-the-middle attack.
2007-09-26Philip Langdale provided the new CURLOPT_POST301 option forDaniel Stenberg
curl_easy_setopt() that alters how libcurl functions when following redirects. It makes libcurl obey the RFC2616 when a 301 response is received after a non-GET request is made. Default libcurl behaviour is to change method to GET in the subsequent request (like it does for response code 302 - because that's what many/most browsers do), but with this CURLOPT_POST301 option enabled it will do what the spec says and do the next request using the same method again. I.e keep POST after 301. The curl tool got this option as --post301 Test case 1011 and 1012 were added to verify.
2007-09-21Mark Davies fixed Negotiate authentication over proxy, and also introducedDaniel Stenberg
the --proxy-negotiate command line option to allow a user to explicitly select it.