aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
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.
2007-08-31Renamed the CURLE_FTP_SSL_FAILED error code to CURLE_USE_SSL_FAILED.Dan Fandrich
Renamed the curl_ftpssl enum to curl_usessl and its enumerated constants, creating macros for backward compatibility.
2007-08-30Renamed several libcurl error codes and options to make them more generalDan Fandrich
and allow reuse by multiple protocols. Several unused error codes were removed. In all cases, macros were added to preserve source (and binary) compatibility with the old names. These macros are subject to removal at a future date, but probably not before 2009. An application can be tested to see if it is using any obsolete code by compiling it with the CURL_NO_OLDIES macro defined. Documented some newer error codes in libcurl-error(3)
2007-08-12minor change in language for the --libcurl source headerDaniel Stenberg
2007-07-10Fixed a curl memory leak reported by Song Ma with a modified versionDan Fandrich
of the patch he suggested. Added his test case as test289 to verify.
2007-07-01Thomas J. Moore provided a patch that introduces Kerberos5 support inDaniel Stenberg
libcurl. This also makes the options change name to --krb (from --krb4) and CURLOPT_KRBLEVEL (from CURLOPT_KRB4LEVEL) but the old names are still
2007-06-30minor patches to enable building for NetWare CLIB.Gunter Knauf
sent by Dmitry Mityugov.
2007-06-20Adam Piggott filed bug report #1740263Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1740263). Adam discovered that when getting a large amount of URLs with curl, they were fetched slower and slower... which turned out to be because the --libcurl data collecting which wrongly always was enabled, but no longer is...
2007-06-06make -s/--silent properly toggle as it is documentedDaniel Stenberg
2007-05-24'mytx' in bug report #1723194 (http://curl.haxx.se/bug/view.cgi?id=1723194)Daniel Stenberg
pointed out that the warnf() function in the curl tool didn't properly deal with the cases when excessively long words were used in the string to chop up.
2007-05-02Fixed a logic error in the last patch and another out of memory issue.Dan Fandrich
Reduce the scope of some variables.
2007-05-01Improved behaviour in out of memory conditions.Dan Fandrich
2007-04-25Steve Little's fixes to allow compilation on VMS 64-bit modeYang Tse
2007-04-22- Song Ma's warning if -r/--range is given with a "bad" range, also noted inDaniel Stenberg
the man page now.
2007-04-15Minor updates to --help outputDan Fandrich
2007-04-04Fixed curl_slist_append handling of out of memory conditions on theDan Fandrich
easycode list (discovered by runtests' torture test).
2007-04-03fix MSDOS symbol checkYang Tse
2007-04-03djgpp isn't the only possible DOS target.Gisle Vanem
Use the more traditional DJGPP define. Added basename() for non-djgpp targets.
2007-04-03Simplify setting binary mode on file-descriptors.Gisle Vanem
Work around the non-standard _setmode() in Metaware's HighC.
2007-04-03Added --ftp-account to --help output.Dan Fandrich
2007-04-01Matt Kraai provided a patch that makes curl build on QNX 6 fine again. MostlyDaniel Stenberg
by letting configure check for setmode and ifdef on HAVE_SETMODE. NOTE: non- configure platforms that havve setmode() needs their hard-coded config.h files fixed. I fixed the src/config-win32.h.
2007-03-31Since the str2num() function gets called with the 'nextarg' pointer fromDaniel Stenberg
within the getparameter a lot, we must check it for NULL before accessing the str data. CID 14 of the coverity.com scan
2007-03-31check the correct variable to want about --stderr failures properlyDaniel Stenberg
CID 18 by the coverity.com scan
2007-03-31fix memory leak in case of memory problemsDaniel Stenberg
CID 16 by coverity.com scan
2007-03-31fix a (minor) memory leak in case of errorDaniel Stenberg
CID 21 in the coverity.com scan
2007-03-30pointless check for 'out' being non-NULL, since it was badly done and isDaniel Stenberg
unnecessary - found by coverity.com scan
2007-03-23Added --pubkey option to curl and made --key also work for SCP/SFTP,Dan Fandrich
plus made --pass work on an SSH private key as well.
2007-03-22Free some additional strings on exit to avoid memory leaks.Dan Fandrich
2007-03-09- Justin Fletcher fixed a file descriptor leak in the curl tool when trying toDaniel Stenberg
upload a file it couldn't open. Bug #1676581 (http://curl.haxx.se/bug/view.cgi?id=1676581)
2007-03-06Fixed a couple of problems detected by valgrind in test cases 181 & 216Dan Fandrich
2007-02-28proper symbol definition check for all AmigaOS flavoursYang Tse
2007-02-25Constify some arguments.Gisle Vanem
2007-02-23- Added warning outputs if the command line uses more than one of the optionsDaniel Stenberg
-v, --trace and --trace-ascii, since it could really confuse the user. Clarified this fact in the man page.
2007-02-20New FTP CCC functionality - adds passive and active mode to accomodate for ↵Linus Nielsen Feltzing
different server behaviour
2007-02-20curl tool was using functions curlx_tvnow and curlx_tvdiff which are notYang Tse
part of the official libcurl API http://curl.haxx.se/lxr/source/lib/README.curlx The documented way of using them would be to use timeval.c as a source code file. The above described method works very well when statically linking libcurl and apps, curl tool, but has several drawbacks when you build a true shared libcurl (i.e. Name space clash at linkage stage as functions are defined more than once. Windows makefiles are not capable of handling this system of source-level sharing) So... Now curlutil.h and curlutil.c define and implement cutil_tvnow and cutil_tvdiff which replace curlx_tvnow and curlx_tvdiff for the curl tool. Doing this we avoid the above described problems.
2007-02-16use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handlingYang Tse
2007-02-12- Shmulik Regev fixed so that the final CRLF of HTTP response headers are sentDaniel Stenberg
to the debug callback. - Shmulik Regev added CURLOPT_HTTP_CONTENT_DECODING and CURLOPT_HTTP_TRANSFER_DECODING that if set to zero will disable libcurl's internal decoding of content or transfer encoded content. This may be preferable in cases where you use libcurl for proxy purposes or similar. The command line tool got a --raw option to disable both at once.
2007-01-27- David McCreedy fixed the Curl command line tool for HTTP on non-ASCIIDaniel Stenberg
platforms.
2007-01-26Remove LoadLibrary() (from my private build).Gisle Vanem
2007-01-26Free 'config->libcurl' at exit.Gisle Vanem
2007-01-26Use "%Od" instead of CURL_FORMAT_OFF_T for <curlx.h> functions.Gisle Vanem
2007-01-26Options of type CURLOPTTYPE_FUNCTIONPOINT are never printable.Gisle Vanem
2007-01-25ugha, prevent a buffer overflow and allow very long strings in the generatedDaniel Stenberg
libcurl source...
2007-01-25- Added the --libcurl [file] option to curl. Append this option to anyDaniel Stenberg
ordinary curl command line, and you will get a libcurl-using source code written to the file that does the equivalent operation of what your command line operation does!
2007-01-23Speed-up djgpp's stat() by avoid checking for uneeded stuff.Gisle Vanem
2007-01-05- Linus Nielsen Feltzing introduced the --ftp-ssl-ccc command line option toDaniel Stenberg
curl that uses the new CURLOPT_FTP_SSL_CCC option in libcurl. If enabled, it will make libcurl shutdown SSL/TLS after the authentication is done on a FTP-SSL operation.
2006-12-15Plug more leaks.Gisle Vanem
2006-12-14Free 'config->iface' if set.Gisle Vanem
2006-10-19Here's an effort to avoid saying 'data not shown' in the debug parts when theDaniel Stenberg
data is actually shown on screen. Like when you do 'curl -v host' with data and debug info sent to the same terminal.