Gisle Vanem [Sat, 29 Sep 2007 14:37:47 +0000 (14:37 +0000)]
We should standarise on C comments.
Gisle Vanem [Sat, 29 Sep 2007 14:34:59 +0000 (14:34 +0000)]
Fix compiler warning in setsockopt().
Steinar H. Gunderson [Sat, 29 Sep 2007 14:25:14 +0000 (14:25 +0000)]
TCP queries can time out too, not just UDP queries. (Patch from the Google tree.)
Steinar H. Gunderson [Sat, 29 Sep 2007 14:21:47 +0000 (14:21 +0000)]
Read and process as many packets as possible in read_udp_packets, to avoid having to run the entire event loop once per packet. (Patch from the Google tree.)
Steinar H. Gunderson [Sat, 29 Sep 2007 14:09:14 +0000 (14:09 +0000)]
There are two different places in write_tcp_data() that advance the send_queue; however, they are slightly different and only the first one properly uses a while loop. Consolidate both into a single function that DTTR. (Patch from the Google tree.)
Steinar H. Gunderson [Sat, 29 Sep 2007 13:58:23 +0000 (13:58 +0000)]
Reject names that are longer than 255 characters, to avoid problems with strict or buggy DNS server implementations. (Patch from the Google tree)
Steinar H. Gunderson [Sat, 29 Sep 2007 13:56:36 +0000 (13:56 +0000)]
In ares_mkquery, make sure we set buflen and buf to reasonable values if there's an error. (Patch from the Google tree)
Steinar H. Gunderson [Sat, 29 Sep 2007 13:52:14 +0000 (13:52 +0000)]
Be stricter about what's a valid IP address in fake_hostent. (Patch from the Google tree.)
Steinar H. Gunderson [Sat, 29 Sep 2007 13:38:17 +0000 (13:38 +0000)]
Handle the root of the DNS tree correctly in ares_expand_name.
Daniel Stenberg [Fri, 28 Sep 2007 21:48:28 +0000 (21:48 +0000)]
Adapted the c-ares code to the API change c-ares 1.5.0 brings in the
notifier callback(s).
Daniel Stenberg [Fri, 28 Sep 2007 21:45:05 +0000 (21:45 +0000)]
rename variable to prevent shadow warning
Daniel Stenberg [Fri, 28 Sep 2007 20:28:20 +0000 (20:28 +0000)]
today's modifications by Steinar and me
Daniel Stenberg [Fri, 28 Sep 2007 20:28:06 +0000 (20:28 +0000)]
Bumped version to 1.5.0 for next release and soname bumped to 2 due to ABI
and API changes in the progress callback (and possibly more coming up from
Steinar)
Dan Fandrich [Fri, 28 Sep 2007 18:47:59 +0000 (18:47 +0000)]
Renamed a variable to avoid shadowing a global declarations.
Steinar H. Gunderson [Fri, 28 Sep 2007 15:56:28 +0000 (15:56 +0000)]
Unrevert previous 'missing' hunks. They were missing since the patch is still in for review :-)
Steinar H. Gunderson [Fri, 28 Sep 2007 15:55:11 +0000 (15:55 +0000)]
Yet more missing hunks... Nggh.
Steinar H. Gunderson [Fri, 28 Sep 2007 15:53:10 +0000 (15:53 +0000)]
Always register for TCP events even if there are no outstanding queries, as the other side could always close the connection, which is a valid event which should be responded to.
Steinar H. Gunderson [Fri, 28 Sep 2007 15:51:00 +0000 (15:51 +0000)]
Forgot to include a few hunks from ares_process.c earlier. Fixing now.
Steinar H. Gunderson [Fri, 28 Sep 2007 15:15:39 +0000 (15:15 +0000)]
Support a few more socket options, and refactor the option setting a bit. (Patch from the Google tree.)
Steinar H. Gunderson [Fri, 28 Sep 2007 14:46:51 +0000 (14:46 +0000)]
Make the query callbacks return the number of timeouts that happened during the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
Steinar H. Gunderson [Fri, 28 Sep 2007 14:28:14 +0000 (14:28 +0000)]
Three fixes in one commit (sorry): a) Take care of the tcpbuf if it ends while queued for transmission, note broken servers and close them in the main loop, and store TCP socket generation number in order not to send the same query twice over the same socket.
Steinar H. Gunderson [Fri, 28 Sep 2007 14:26:11 +0000 (14:26 +0000)]
Don't skip a server if it's the only one. (Bugfix from the Google tree.)
Dan Fandrich [Thu, 27 Sep 2007 18:39:10 +0000 (18:39 +0000)]
Don't strdup an empty string
Dan Fandrich [Thu, 27 Sep 2007 18:12:03 +0000 (18:12 +0000)]
Renamed a few variables to avoid shadowing global declarations.
Dan Fandrich [Thu, 27 Sep 2007 17:22:10 +0000 (17:22 +0000)]
Removed cut-and-paste cruft leading to fclose() of an unopened file
Daniel Stenberg [Thu, 27 Sep 2007 12:05:39 +0000 (12:05 +0000)]
a name resolve that times out is still a failed name resolve
Daniel Stenberg [Thu, 27 Sep 2007 12:04:56 +0000 (12:04 +0000)]
wrong, revert the previous "fix" and instead check that the fd_set pointer
is non-NULL before we FD_CLR
Daniel Stenberg [Thu, 27 Sep 2007 12:02:15 +0000 (12:02 +0000)]
eek, fix the conditions to return on either problem instead of requiring
both to occur
Dan Fandrich [Thu, 27 Sep 2007 02:45:58 +0000 (02:45 +0000)]
Renamed a few variables to avoid shadowing global declarations.
Dan Fandrich [Thu, 27 Sep 2007 01:45:22 +0000 (01:45 +0000)]
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
Yang Tse [Thu, 27 Sep 2007 00:58:41 +0000 (00:58 +0000)]
Fix compiler warning: the address of 'env' will always evaluate as 'true'
Daniel Stenberg [Wed, 26 Sep 2007 12:46:03 +0000 (12:46 +0000)]
we added a curl_easy_setopt() option too
Daniel Stenberg [Wed, 26 Sep 2007 12:44:59 +0000 (12:44 +0000)]
Philip Langdale provided the new CURLOPT_POST301 option for
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.
Daniel Stenberg [Wed, 26 Sep 2007 12:00:01 +0000 (12:00 +0000)]
Max Katsev reported that when doing a libcurl FTP request with
CURLOPT_NOBODY enabled but not CURLOPT_HEADER, libcurl wouldn't do TYPE
before it does SIZE which makes it less useful. I walked over the code and
made it do this properly, and added test case 542 to verify it.
Dan Fandrich [Tue, 25 Sep 2007 17:33:56 +0000 (17:33 +0000)]
Make glibc define the prototype for strcasestr
Daniel Stenberg [Tue, 25 Sep 2007 08:46:49 +0000 (08:46 +0000)]
a new Lua binding and I shortened the wording on several bindings by cutting
out "written"
Dan Fandrich [Tue, 25 Sep 2007 06:45:05 +0000 (06:45 +0000)]
#ifdef out a few more functions when SSL is disabled.
Dan Fandrich [Tue, 25 Sep 2007 06:43:58 +0000 (06:43 +0000)]
Use a native strcasestr() if found.
Daniel Stenberg [Mon, 24 Sep 2007 21:47:35 +0000 (21:47 +0000)]
Immanuel Gregoire fixed KNOWN_BUGS #44: --ftp-method nocwd did not handle
URLs ending with a slash properly (it should list the contents of that
directory). Test case 351 brought back and also test 1010 was added.
Daniel Stenberg [Mon, 24 Sep 2007 10:56:26 +0000 (10:56 +0000)]
Bad use of "its" replaceed with a rephrase. I noticed this flaw thanks to the
Debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443734
Daniel Stenberg [Sat, 22 Sep 2007 21:23:10 +0000 (21:23 +0000)]
Steinar H. Gunderson fixed: Correctly clear sockets from the fd_set on in
several functions (write_tcp_data, read_tcp_data, read_udp_packets) so that
if it fails and the socket is closed the following code doesn't try to use
the file descriptor.
Daniel Stenberg [Sat, 22 Sep 2007 21:04:16 +0000 (21:04 +0000)]
Steinar H. Gunderson modified c-ares to now also do to DNS retries even when
TCP is used since there are several edge cases where it still makes sense.
Daniel Stenberg [Sat, 22 Sep 2007 20:45:50 +0000 (20:45 +0000)]
Brad House provided a fix for ares_save_options(): Apparently I overlooked
something with the ares_save_options() where it would try to do a malloc(0)
when no options of that type needed to be saved. On most platforms, this was
fine because malloc(0) doesn't actually return NULL, but on AIX it does, so
ares_save_options would return ARES_ENOMEM.
Daniel Stenberg [Fri, 21 Sep 2007 11:53:56 +0000 (11:53 +0000)]
--proxy-negotiate is added in 7.17.1
Daniel Stenberg [Fri, 21 Sep 2007 11:19:13 +0000 (11:19 +0000)]
the NSS patch has been committed
Daniel Stenberg [Fri, 21 Sep 2007 11:08:03 +0000 (11:08 +0000)]
Available command line options: 119
Daniel Stenberg [Fri, 21 Sep 2007 11:05:31 +0000 (11:05 +0000)]
Mark Davies fixed Negotiate authentication over proxy, and also introduced
the --proxy-negotiate command line option to allow a user to explicitly
select it.
Dan Fandrich [Thu, 20 Sep 2007 20:39:17 +0000 (20:39 +0000)]
Added variable substitution to the <verify><file> section.
Made a few more tests work remotely.
Daniel Stenberg [Thu, 20 Sep 2007 14:43:31 +0000 (14:43 +0000)]
reformatted to be similar to the FAQ to make it look nicer on the site:
http://curl.haxx.se/docs/contribute.html
Daniel Stenberg [Thu, 20 Sep 2007 14:19:57 +0000 (14:19 +0000)]
Achint Mehta pointed out this dead link
Daniel Stenberg [Thu, 20 Sep 2007 14:05:53 +0000 (14:05 +0000)]
the winsock stuff is made by curl_global_init
Daniel Stenberg [Thu, 20 Sep 2007 14:05:11 +0000 (14:05 +0000)]
fix bad link
Daniel Stenberg [Thu, 20 Sep 2007 14:02:34 +0000 (14:02 +0000)]
Immanuel Gregoire is the man
Dan Fandrich [Thu, 20 Sep 2007 00:37:08 +0000 (00:37 +0000)]
Fixed typo in error message.
Daniel Stenberg [Tue, 18 Sep 2007 22:21:54 +0000 (22:21 +0000)]
Rob Crittenden provided an NSS update with the following highlights:
o It looks for the NSS database first in the environment variable SSL_DIR,
then in /etc/pki/nssdb, then it initializes with no database if neither of
those exist.
o If the NSS PKCS#11 libnspsem.so driver is available then PEM files may be
loaded, including the ca-bundle. If it is not available then only
certificates already in the NSS database are used.
o Tries to detect whether a file or nickname is being passed in so the right
thing is done
o Added a bit of code to make the output more like the OpenSSL module,
including displaying the certificate information when connecting in
verbose mode
o Improved handling of certificate errors (expired, untrusted, etc)
The libnsspem.so PKCS#11 module is currently only available in Fedora
8/rawhide. Work will be done soon to upstream it. The NSS module will work
with or without it, all that changes is the source of the certificates and
keys.
Daniel Stenberg [Tue, 18 Sep 2007 21:33:05 +0000 (21:33 +0000)]
mention the prefered source code line length to be less than 80 columns
Daniel Stenberg [Tue, 18 Sep 2007 21:14:28 +0000 (21:14 +0000)]
Immanuel pointed out that public key SSH auth failed if no public/private
key was specified and there was no HOME environment variable, and then it
didn't continue to try the other auth methods. Now it will instead try to
get the files id_dsa.pub and id_dsa from the current directory if none of
the two conditions were met.
Dan Fandrich [Tue, 18 Sep 2007 20:41:20 +0000 (20:41 +0000)]
Use double quotes in command lines for consistency.
Gunter Knauf [Tue, 18 Sep 2007 18:18:34 +0000 (18:18 +0000)]
added a define for Win32 to detect already defined ssize_t.
Dan Fandrich [Tue, 18 Sep 2007 17:41:04 +0000 (17:41 +0000)]
IPv6 is a required feature for these two tests, even if it's not obvious.
Dan Fandrich [Mon, 17 Sep 2007 23:23:13 +0000 (23:23 +0000)]
Fixed the required server entry
Dan Fandrich [Mon, 17 Sep 2007 21:44:57 +0000 (21:44 +0000)]
Changed some FTP tests to validate the format of the PORT and EPRT commands
sent by curl, if not the addresses themselves.
Dan Fandrich [Mon, 17 Sep 2007 21:42:01 +0000 (21:42 +0000)]
Added %CLIENTIP and %CLIENT6IP data file substitution variables.
Added hooks to the test suite to make it possible to test a curl running
on a remote host.
Dan Fandrich [Mon, 17 Sep 2007 21:39:34 +0000 (21:39 +0000)]
Allow setting the IP address on which to listen for connections.
Daniel Stenberg [Mon, 17 Sep 2007 20:43:05 +0000 (20:43 +0000)]
Günter's ldap fixes
Dan Fandrich [Mon, 17 Sep 2007 18:12:11 +0000 (18:12 +0000)]
Make the ftp server connect to the address given by curl in the PORT/EPRT
instead of hard-coding it to 127.0.0.1
Dan Fandrich [Mon, 17 Sep 2007 17:22:46 +0000 (17:22 +0000)]
Made the directory postprocessor more forgiving of input directory format
Daniel Stenberg [Sat, 15 Sep 2007 22:05:20 +0000 (22:05 +0000)]
three done, seven to go
Daniel Stenberg [Sat, 15 Sep 2007 21:14:12 +0000 (21:14 +0000)]
Michal Marek made libcurl automatically append ";type=<a|i>" when using HTTP
proxies for FTP urls.
Daniel Stenberg [Sat, 15 Sep 2007 21:06:11 +0000 (21:06 +0000)]
offer a friendlier single-line command
Gunter Knauf [Sat, 15 Sep 2007 20:03:03 +0000 (20:03 +0000)]
fixed ldap support for winldap.
Gunter Knauf [Sat, 15 Sep 2007 20:02:22 +0000 (20:02 +0000)]
fixed VC6 makefiles for new ldap linkage.
Daniel Stenberg [Sat, 15 Sep 2007 08:51:42 +0000 (08:51 +0000)]
I want these CONNECT problems fixed too
Daniel Stenberg [Sat, 15 Sep 2007 08:50:04 +0000 (08:50 +0000)]
7.17.1 planned release in November 2007, and a bunch of things to deal with
Dan Fandrich [Fri, 14 Sep 2007 19:32:31 +0000 (19:32 +0000)]
Replaced 127.0.0.1 with %HOSTIP where possible
Dan Fandrich [Fri, 14 Sep 2007 01:56:08 +0000 (01:56 +0000)]
Added LDAPS, SCP and SFTP to curl-config --protocols. Removed and
fixed some AC_SUBST configure entries.
Dan Fandrich [Fri, 14 Sep 2007 01:24:59 +0000 (01:24 +0000)]
Added LDAPS, SCP and SFTP to curl-config --protocols.
Removed and fixed some AC_SUBST configure entries.
Dan Fandrich [Thu, 13 Sep 2007 22:20:35 +0000 (22:20 +0000)]
Compile samples with -DCURL_NO_OLDIES
Daniel Stenberg [Thu, 13 Sep 2007 21:06:19 +0000 (21:06 +0000)]
7.17.1-CVS is now the dev version
Daniel Stenberg [Thu, 13 Sep 2007 21:05:56 +0000 (21:05 +0000)]
start over on 7.17.1
Dan Fandrich [Thu, 13 Sep 2007 20:36:52 +0000 (20:36 +0000)]
Remove remaining traces of ftp3rdparty.c and mention htmltidy.c
Daniel Stenberg [Thu, 13 Sep 2007 20:22:14 +0000 (20:22 +0000)]
Version 7.17.0 (13 September 2007)
Daniel Stenberg [Thu, 13 Sep 2007 09:02:15 +0000 (09:02 +0000)]
added some further stuff from the feature-requests tracker, and a bunch of URLs
to the specific tracker entries
Dan Fandrich [Wed, 12 Sep 2007 18:20:52 +0000 (18:20 +0000)]
TFTP error 0 is no longer treated as success
Daniel Stenberg [Wed, 12 Sep 2007 10:46:14 +0000 (10:46 +0000)]
Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set
it. This caused a segfault in some fprintf() implementations. Like on Solaris.
Daniel Stenberg [Tue, 11 Sep 2007 22:37:47 +0000 (22:37 +0000)]
rephrased to mention ftp
Daniel Stenberg [Tue, 11 Sep 2007 22:36:39 +0000 (22:36 +0000)]
curl.digimirror.nl is a new mirror in Amsterdam, the Netherlands
Daniel Stenberg [Tue, 11 Sep 2007 22:23:57 +0000 (22:23 +0000)]
Daniel S (12 September 2007)
- Bug report #
1792649 (http://curl.haxx.se/bug/view.cgi?id=
1792649) pointed
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
Daniel Stenberg [Tue, 11 Sep 2007 22:21:39 +0000 (22:21 +0000)]
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
Daniel Stenberg [Tue, 11 Sep 2007 22:21:12 +0000 (22:21 +0000)]
- Bug report #
1792649 (http://curl.haxx.se/bug/view.cgi?id=
1792649) pointed
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
Daniel Stenberg [Sun, 9 Sep 2007 22:22:45 +0000 (22:22 +0000)]
A brand new binding for SP-Forth was written
Dan Fandrich [Fri, 7 Sep 2007 20:35:37 +0000 (20:35 +0000)]
TFTP now reports the "not defined" TFTP error code 0 as an error,
not success.
Dan Fandrich [Fri, 7 Sep 2007 20:05:20 +0000 (20:05 +0000)]
Added test case 1007 to test permission problem when uploading with TFTP
(to validate bug #
1790403).
Daniel Stenberg [Thu, 6 Sep 2007 21:38:50 +0000 (21:38 +0000)]
http://curl.cheap.co.il is a new mirror in Tel-Aviv, Israel
Daniel Stenberg [Thu, 6 Sep 2007 13:38:05 +0000 (13:38 +0000)]
two new CONNECT response problems that have appeared
Dan Fandrich [Wed, 5 Sep 2007 22:01:57 +0000 (22:01 +0000)]
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
sockets.
Daniel Stenberg [Wed, 5 Sep 2007 21:41:07 +0000 (21:41 +0000)]
Curl_GetFTPResponse() now checks and properly deals with the fact that the
underlying ftp_readresp() function has a separate "cache" where there might
in fact be leftover data...
Dan Fandrich [Wed, 5 Sep 2007 17:22:23 +0000 (17:22 +0000)]
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
sockets.
Dan Fandrich [Wed, 5 Sep 2007 17:17:59 +0000 (17:17 +0000)]
Minor updates
Daniel Stenberg [Mon, 3 Sep 2007 14:10:32 +0000 (14:10 +0000)]
I can't spell