aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2011-09-25POST: always set postfieldsizeDaniel Stenberg
When we use binary posts and regular ones intermixed on a single command line, we cannot do strlen() etc on the data to figure out the length (when inserting '&' and more). We must therefore keep track of the post data length. Then we also end up setting the libcurl option with the known size, so that we don't risk that libcurl will do strlen() on the data. This has the minor side-effect that --libcurl source codes now always will use CURLOPT_POSTFIELDSIZE but I don't consider that terribly damaging. Bug: http://curl.haxx.se/bug/view.cgi?id=3413181 Reported by: Taneli Vähäkangas
2011-09-24curl tool: fix a compiler warningYang Tse
2011-09-24curl tool: reviewed code moved to tool_*.[ch] filesYang Tse
2011-09-24curl tool: fix some OOM handling issuesYang Tse
2011-09-22curl tool: fix some OOM handling issuesYang Tse
2011-09-22curl tool: reviewed code moved to tool_*.[ch] filesYang Tse
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result. Fixed some OOM handling issues.
2011-09-21curl tool: reviewed code moved to tool_*.[ch] filesYang Tse
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result. Fixed some OOM handling issues.
2011-09-20curl tool: reviewed code moved to tool_*.[ch] filesYang Tse
Overhauled FindWin32CACert()
2011-09-19curl tool: reviewed code moved to tool_*.[ch] filesYang Tse
2011-09-18curl tool: create tool_myfunc.[ch] which later on will hold my_* functionsYang Tse
Additionally function my_useragent() now provides default User-Agent string
2011-09-16curl tool: move 'Configurable' and free_config_fields() to tool_cfgable.[ch]Yang Tse
Reviewing fields being free'd in free_config_fields() still pending
2011-09-16curl tool: move so called 'multi_files' stuff into tool_mfiles.[ch]Yang Tse
Additionally some code reorganization and direct OOM handling fixes, just another step towards fixing curl tool issues uncovered 2011-09-15
2011-09-16curl tool: move convert_* functions into tool_convert.[ch]Yang Tse
Additionally fix data type of result vars for iconv() calls
2011-09-16main.c: convert GetStr() into a macro to ease leak debuggingYang Tse
2011-09-16main.c: de-obfuscate a couple for-loop exit conditionsYang Tse
2011-09-15curl tool: fix a bunch of double free's uncovered 2011-09-15Yang Tse
Re-enabling MemoryTracking capability on 'src' subdirectory files and torture tests have uncovered many issues which were going unnoticed in curl tool. So here we go fixing some of them. Others still remain and should be addressed ASAP, given that curl tool is used in our test harness also for test server start verification purposes. There are even non-socket file descriptor leaks.
2011-09-14curl tool: re-enable MemoryTracking capability on 'src' subdirectory files.Yang Tse
Use same preprocessor logic for curl tool MemoryTracking activation in source files located in 'src' subdirectory as the one used for libcurl sources.
2011-09-08Avoid ftruncate() static define with MinGW64.Guenter Knauf
2011-09-06fix bool variables checking and assignmentYang Tse
2011-09-05fix bool variables checking and assignmentYang Tse
2011-09-03fix a bunch of MSVC compiler warningsYang Tse
2011-08-27NTLM single-sign on adjustments (XI)Yang Tse
Feature string literal NTLM_SSO renamed to NTLM_WB. Preprocessor symbol USE_NTLM_SSO renamed to WINBIND_NTLM_AUTH_ENABLED. curl's 'long' option 'ntlm-sso' renamed to 'ntlm-wb'. Fix some comments to make clear that this is actually a NTLM delegation.
2011-08-26NTLM single-sign on adjustments (X)Yang Tse
Functions renamed: Curl_output_ntlm_sso -> Curl_output_ntlm_wb sso_ntlm_close -> wb_ntlm_close sso_ntlm_response -> wb_ntlm_response sso_ntlm_initiate -> wb_ntlm_initiate Preprocessor symbols renamed: CURLAUTH_NTLM_SSO -> CURLAUTH_NTLM_WB CURL_VERSION_NTLM_SSO -> CURL_VERSION_NTLM_WB
2011-08-21main: fix segfaultDaniel Stenberg
Follow-up to commit 5eb2396cd as that wasn't complete. At times HEADERFUNCTION+HEADERDATA was set only to have only HEADERDATA set in the subsequent loop which could cause a NULL to get sent as userdata to 'header_callback' which wasn't made to handle that. Now HEADERFUNCTION is explicitly set to NULL if it isn't set to the callback.
2011-08-21MemoryTracking: adjust initialization calling - followupYang Tse
Fix macro definition
2011-08-20MemoryTracking: adjust initialization callingYang Tse
Calling of curl_memdebug() was still done with a pending free()
2011-08-12added --delegationDaniel Stenberg
Using this option with an argument being set to one of none/policy/always instructs libcurl how to deal with GSS credentials. Or rather how it tells the server that delegation is fine or not.
2011-08-04segfault fixedDaniel Stenberg
When using both -J and a single -O with multiple URLs, a missing init could cause badness. Bug: http://curl.haxx.se/mail/lib-2011-07/0126.html and http://bugzilla.redhat.com/723075 Reported by: Paul Howarth and Garrett Holmstrom
2011-08-04parse_filename: deal with escaped quotesDaniel Stenberg
2011-08-04-J: support ';' in quoted file namesDaniel Stenberg
Content-disposition headers can provide file names with semicolons which previously would be cut off at that point. Added test case 1311 and 1312 to verify -J. Bug: http://curl.haxx.se/bug/view.cgi?id=3375603 Reported by: Peter Hjalmarsson
2011-07-26stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse
2011-07-24errno.h inclusion conditionally done in setup_once.hYang Tse
2011-07-18NTLM single-sign on supportedMandy Wu
With the use of the 'ntlm_auth' tool from the Samba project
2011-07-03help output: more gnu like outputDaniel Stenberg
First, the -J/--remote-header-name was wrongly sorted in the --help output as pointed out in bug report #3349271. Then, I changed the format of the texts to follow the man page better in that it now uses "-A, --long" intead of "-A/--long". I also made all additional arguments get written as in "-A, --long FILENAME" instead of the previous "<filename>" style. Reported by: Herve Amblard Bug: http://curl.haxx.se/bug/view.cgi?id=3349271
2011-05-29main: fix header inclusion orderYang Tse
Currently, Windows cross-compiled autobuilds require inclusion of setup.h before curl.h to get definitions of CURL_STATICLIB and BUILDING_LIBCURL.
2011-05-29main: fix header inclusion orderYang Tse
2011-04-27checksrc: whitespace and code style cleanupDaniel Stenberg
Make everything adhere to the standards upheld by checksrc.pl and now run checksrc from the makefile on debug builds.
2011-04-21Fix spelling errors in src/Fabian Keil
Found with codespell.
2011-04-18transfer-encoding: added new option and cmdlineDaniel Stenberg
Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
2011-03-09Force setopt constants written by --libcurl to be longDan Fandrich
2011-02-20curl: Added --netrc-file.Julien Chaffraix
This enables people to specify a path to the netrc file to use. The new option override --netrc if both are present. However it does follow --netrc-optional if specified.
2011-02-10--keepalive-time: warn if not supported properlyDaniel Stenberg
Since the feature requires support for TCP_KEEPIDLE and TCP_KEEPINTVL to function as documented, it now warns if that support is missing when the option is used.
2011-01-19main: make the tlsauth options always presentDaniel Stenberg
... to not make the connection between the tool and the libcurl used tighter than necessary, the tlsauth options are now always present but if the used libcurl doesn't have TLSAUTH support it will return failure. Also, replaced strncmp() with strequal to get case insensitive matching.
2011-01-19TLS-SRP: support added when using GnuTLSQuinn Slack
2010-12-20getparameter: add error checkDaniel Stenberg
if add2list() returns an error, bail out!
2010-12-03fix compiler warning: assignment within conditional expressionYang Tse
2010-11-28atoi: remove atoi usageYang Tse
2010-11-10write extended attributes by using fsetxattrStefan Tomanek
Instead of reopening the downloaded file, fsetxattr uses the (already open) file descriptor to attach extended attributes. This makes the procedure more robust against errors caused by moved or deleted files.
2010-11-08help: indent the --xattr option like the othersDaniel Stenberg
2010-11-08CURLOPT_RESOLVE: addedDaniel Stenberg
CURLOPT_RESOLVE is a new option that sends along a curl_slist with name:port:address sets that will populate the DNS cache with entries so that request can be "fooled" to use another host than what otherwise would've been used. Previously we've encouraged the use of Host: for that when dealing with HTTP, but this new feature has the added bonus that it allows the name from the URL to be used for TLS SNI and server certificate name checks as well. This is a first change. Surely more will follow to make it decent.