aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-10-08globbing: fix crash on unballanced open braceDaniel Stenberg
Having an open brace without a closing brace caused a segfault. Having a closing brace too many caused a silent error to occur, which caused curl to bail out and return an error code but no error message was shown. It does now! All error message outputs no longer wrongly get _two_ newlines written after the error message. Reported by: Vlad Ureche Bug: http://curl.haxx.se/bug/view.cgi?id=3083942
2010-10-03Some NetWare makefile tweaks.Guenter Knauf
Renamed SDK_* to NDK_*; made NDK_* defines overwriteable from environment; removed now obsolete YACC macro; moved some curl_config.h defines to IPv6 section since they are only needed when IPv6 is enabled - this makes libcurl compile with older NDKs too which were not IPv6-aware.
2010-09-16whitespace: unified sourceDaniel Stenberg
if ( => if( while ( => while( and some other changes in the similar spirit, trying to make the whole file use the same style
2010-09-16remote-header-name: don't output filename when NULLDaniel Stenberg
2010-09-12glob_word: remove a check that is always falseDaniel Stenberg
2010-09-02Use checkprefix() to compare protocol-specific stringsDan Fandrich
Otherwise, there could be problems running in certain locales.
2010-09-02Moved S_ISREG define to setup as suggested by Dan.Guenter Knauf
2010-09-02Added S_ISREG define for Win32.Guenter Knauf
2010-08-25Gopher protocol support (initial release)Cameron Kaiser
2010-08-24Fixed a NULL pointer dereference in form postingDan Fandrich
It was introduced in commit eeb2cb05 along with the -F type= change. Also fixed a typo in the name of the magic filename= parameter. Tweaked tests 39 and 173 to better test this path.
2010-08-21cmdline: make -F type= accept ;charset=Daniel Stenberg
The -F option allows some custom parameters within the given string, and those strings are separated with semicolons. You can for example specify "name=daniel;type=text/plain" to set content-type for the field. However, the use of semicolons like that made it not work fine if you specified one within the content-type, like for: "name=daniel;type=text/plain;charset=UTF-8" ... as the second one would be seen as a separator and "charset" is no parameter curl knows anything about so it was just silently discarded. The new logic now checks if the semicolon and following keyword looks like a parameter it knows about and if it isn't it is assumed to be meant to be used within the content-type string itself. I modified test case 186 to verify that this works as intended. Reported by: Larry Stone Bug: http://curl.haxx.se/bug/view.cgi?id=3048988
2010-08-19Use the S_ISREG macro to determine what is a regular fileDan Fandrich
2010-08-18It is sufficient to pipe stderr to NUL to get rid of the nasty messages.Guenter Knauf
2010-08-15Syncroniszed vclean target; fixed some comments.Guenter Knauf
2010-08-15curl -T: ignore file size of special filesKamil Dudka
original bug report at https://bugzilla.redhat.com/622520
2010-08-11Added OpenSSL builds to Watcom makefiles.Guenter Knauf
2010-08-10More Watcom makefile fixes ...Guenter Knauf
Final fix (hopefully!) for dll wlink loader; prefer faster internal rm if available.
2010-08-10Fixed my wrong edit.Guenter Knauf
2010-08-10More Watcom makefile fixes.Guenter Knauf
Added the -br switch to dynamic builds which fixes the issue I saw with curl's --version output. Added debug info and symfile for debug builds to linker opts. Added DLL loader for wlink back, but this time dependend on wlink version. Patch posted to the list by malak.jiri AT gmail.com.
2010-08-10Changed test for -u switch in order to enable other wmake switches.Guenter Knauf
The var %MAKEFLAGS is only set in 3 cases: if set as environment var or as macro definition from commandline, and either with the -u or -ms switch. Since all these cases are unlikely for the average user it should be safe to only test if %MAKEFLAGS is defined; this has the benefit that now all other switches can be used again in addition to the -u which was formerly not possible.
2010-08-10Updated lib dependency versions.Guenter Knauf
2010-08-07Fix to overwrite libcurl name.Guenter Knauf
2010-08-06Some more Watcom makefile massage ...Guenter Knauf
For now removed the .autodepend directive until I've figured out which of my changes broke it again.
2010-08-02Rename CURL_SOURCES macro; revert previous rename of curl_SOURCES macro.Guenter Knauf
2010-08-02Removed ugly dependency lists since wmake knows the .autodepend directive.Guenter Knauf
2010-08-02Use suffix search path for sources in lib folder.Guenter Knauf
2010-08-02Changed src/Makefile.Watcom to use CURL_SOURCES from src/Makefile.inc.Guenter Knauf
2010-08-02Renamed curl_SOURCES to CURL_ALLFILES to overcome wmake's case-insensitivity.Guenter Knauf
2010-08-02Removed wlink from DLL loader list because it doesnt work with Watcom < 1.8.Guenter Knauf
2010-08-02retry: consider retrying even if -f is usedDaniel Stenberg
The --retry logic does retry HTTP when some specific response codes are returned, but because the -f option sets the CURLOPT_FAILONERROR to libcurl, the return codes are different for such situations and then the curl tool failed to consider it for retrying. Reported by: Mike Power Bug: http://curl.haxx.se/bug/view.cgi?id=3037362
2010-08-01Added dependend libs for curl static linking.Guenter Knauf
2010-07-31Fixed curl.exe static linking.Guenter Knauf
2010-07-29Added a comment with an alternate idea to avoid the backslash line ↵Guenter Knauf
contination character.
2010-07-29Make Watcom makefiles use Makefile.inc to reduce future maintainance.Guenter Knauf
lib/Makefile.Watcom works fine already, for src/Makefile.Watcom we need first to tweak src/Makefile.inc a bit - therefore the handtweaked list still exists for now.
2010-07-29Watcom makefiles overhaul.Guenter Knauf
- make both libcurl and curl makefiles use register calling convention (previously libcurl had stack calling convention). - added include paths to the Watcom headers so its no longer required to set the environment vars for this. - added -wcd=201 to supress compiler warning about unreachable code. - use macros for all tools, and removed dependency on GNU tools like rm. - make ipv6 and debug builds controlable via env vars and so make them optional instead of default. - commented WINLDAPAPI and WINBERAPI since they broke with OW 1.8, and it seems they're not needed (anymore?). - added rule for hugehelp.c.cvs so that it will be created when not already exist - this is required for building from a release tarball since there we have no hugehelp.c.cvs, thus compilation broke. - removed C_ARG creation from lib/Makefile.Watcom and use CFLAGS directly as done too in src/Makefile.Watcom - this has the benefit that we will see all active cflags and defines during compile. - added LINK-ARG to src/Makefile.Watcom in order to better control linker input. - a couple of other minor makefile tweaks here and there ... - added largefile support for Watcom builds to config-win32.h. Not yet tested if it really works, but should since Win32 supports it. - added loaddll stuff to speed up builds if supported.
2010-07-22Updated library versions.Guenter Knauf
2010-07-21build: Enable configure --enable-werrorBen Greear
This passes -Werror to gcc when building curl and libcurl, allowing easy dection of compile warnings. Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-17remote-header-name: chop filename at next semicolonJeff Pohlmeyer
The --remote-header-name option for the command-line tool assumes that everything beyond the filename= field is part of the filename, but that might not always be the case, for example: Content-Disposition: attachment; filename=file.txt; modification-date=... This fix chops the filename off at the next semicolon, if there is one.
2010-07-14--retry: access violation with URL part sets continuedDaniel Stenberg
When getting multiple URLs, curl didn't properly reset the byte counter after a successful transfer so if the subsequent transfer failed it would wrongly use the previous byte counter and behave badly (segfault) because of that. The code assumes that the byte counter and the 'stream' pointer is well in synch. Reported by: Jon Sargeant Bug: http://curl.haxx.se/bug/view.cgi?id=3028241
2010-07-07upload: Avoid infinite loop when checking for auth bitsTor Arntsen
The test would loop forever if authtype bit 0 wasn't set.
2010-07-06upload: warn users trying to upload from stdin with anyauthDaniel Stenberg
Since uploading from stdin is very likely to not work with anyauth and its multi-phase probing for what authentication to actually use, alert the user about it. Multi-phase negotiate almost certainly will involve sending data and thus libcurl will need to rewind the stream to send again, and it cannot do that with stdin.
2010-07-06--libcurl: list the tricky options instead of using [REMARK]Daniel Stenberg
I think the [REMARK] and commented function calls cluttered the code a bit too much and made the generated code ugly to read. Now we instead track the remarks one specially and just lists them at the end of the generated code more as additional information.
2010-07-06curl: avoid setting libcurl options to its defaultDaniel Stenberg
it makes the --libcurl output easier to follow.
2010-07-06--libcurl: hide setopt() calls setting default optionsDaniel Stenberg
And additionally, don't show function or object pointers actual value since they make no sense to anyone. Show 'functionpointer' and 'objectpointer' instead.
2010-07-06--libcurl: use *_LARGE options with typecasted constantsDaniel Stenberg
In the generated code --libcurl makes, all calls to curl_easy_setopt() that use *_LARGE options now have the value typecasted to curl_off_t, so that it works correctly for 32bit systems with 64bit curl_off_t type.
2010-06-29glob: backslash escaping bugDaniel Stenberg
curl didn't properly handle escaping characters in a URL with the use of backslash. It did an attempt, but that failed as reported in bug 3022551. The described example was using the URL "http://example.com?{AB,C\,D}". I've now removed the special-handling of letters following the backslash and I also removed the bad extra check that triggered this particular bug. Bug: http://curl.haxx.se/bug/view.cgi?id=3022551 Reported by: Jon Sargeant
2010-06-01fix compiler warning: enumerated type mixed with another typeYang Tse
2010-05-31fix compiler warning: enumerated type mixed with another typeYang Tse
2010-05-29strtoofft: rename CURL_LLONG_MIN -> CURL_OFF_T_MINKamil Dudka
... and CURL_LLONG_MAX -> CURL_OFF_T_MAX
2010-04-29telnet: Allow programatic use of telnet.Ben Greear
The main change is to allow input from user-specified methods, when they are specified with CURLOPT_READFUNCTION. All calls to fflush(stdout) in telnet.c were removed, which makes using 'curl telnet://foo.com' painful since prompts and other data are not always returned to the user promptly. Use 'curl --no-buffer telnet://foo.com' instead. In general, the user should have their CURLOPT_WRITEFUNCTION do a fflush for interactive use. Also fix assumption that reading from stdin never returns < 0. Old code could crash in that case. Call progress functions in telnet main loop. Signed-off-by: Ben Greear <greearb@candelatech.com>