platform/upstream/curl.git
14 years agoSubs for refactoring purposes
Yang Tse [Thu, 31 Dec 2009 02:29:55 +0000 (02:29 +0000)]
Subs for refactoring purposes

14 years agoCURLOPT_HEADERDATA was added in 7.10
Daniel Stenberg [Wed, 30 Dec 2009 23:14:30 +0000 (23:14 +0000)]
CURLOPT_HEADERDATA was added in 7.10

14 years agos/CURLOPT_WRITEHEADER/CURLOPT_HEADERDATA simply because it is a better name
Daniel Stenberg [Wed, 30 Dec 2009 23:14:00 +0000 (23:14 +0000)]
s/CURLOPT_WRITEHEADER/CURLOPT_HEADERDATA simply because it is a better name

14 years agomodified to get the EHLO domain from the path part of the URL instead of the
Daniel Stenberg [Wed, 30 Dec 2009 22:50:42 +0000 (22:50 +0000)]
modified to get the EHLO domain from the path part of the URL instead of the
user name

14 years agomoved the SMTP payload escape function into Curl_smtp_escape_eob and put
Daniel Stenberg [Wed, 30 Dec 2009 22:09:43 +0000 (22:09 +0000)]
moved the SMTP payload escape function into Curl_smtp_escape_eob and put
it in smtp.c

14 years ago(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLF
Daniel Stenberg [Wed, 30 Dec 2009 21:52:27 +0000 (21:52 +0000)]
(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLF
sequences in uploaded data. The test server doesn't "decode" escaped dot-lines
but instead test cases must be written to take them into account. Added test
case 803 to verify dot-escaping.

14 years agoOops, should have removed 'not' in previous commit.
Yang Tse [Wed, 30 Dec 2009 19:43:12 +0000 (19:43 +0000)]
Oops, should have removed 'not' in previous commit.

14 years agoVMS build system enhancements by Steven M. Schweda and Craig A. Berry
Yang Tse [Wed, 30 Dec 2009 19:37:53 +0000 (19:37 +0000)]
VMS build system enhancements by Steven M. Schweda and Craig A. Berry

14 years agoVMS specific preprocessor symbol checking adjustments
Yang Tse [Wed, 30 Dec 2009 17:59:56 +0000 (17:59 +0000)]
VMS specific preprocessor symbol checking adjustments

14 years agoVMS specific preprocessor symbol definition adjustments
Yang Tse [Wed, 30 Dec 2009 17:59:10 +0000 (17:59 +0000)]
VMS specific preprocessor symbol definition adjustments

14 years agoReplaced stricmp() usage with our portable strequal()
Yang Tse [Wed, 30 Dec 2009 15:47:23 +0000 (15:47 +0000)]
Replaced stricmp() usage with our portable strequal()

14 years agomove HTTP-specific functions to http.c where they belong
Daniel Stenberg [Tue, 29 Dec 2009 21:45:02 +0000 (21:45 +0000)]
move HTTP-specific functions to http.c where they belong

14 years agotest 802 is the first SMTP test, although not strictly SMTP yet...
Daniel Stenberg [Tue, 29 Dec 2009 21:28:53 +0000 (21:28 +0000)]
test 802 is the first SMTP test, although not strictly SMTP yet...

14 years agoMention last changes
Yang Tse [Tue, 29 Dec 2009 02:32:12 +0000 (02:32 +0000)]
Mention last changes

14 years ago- Fix configure_socket() to use ares_socket_t instead of int data type.
Yang Tse [Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)]
- Fix configure_socket() to use ares_socket_t instead of int data type.

14 years ago- Where run-time error checks enabling compiler option /GZ was used it is now
Yang Tse [Tue, 29 Dec 2009 01:51:57 +0000 (01:51 +0000)]
- Where run-time error checks enabling compiler option /GZ was used it is now
  replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.

- Compiler option /GX is now replaced with equivalent /EHsc for all versions.

14 years agoLeftover from previous commit
Yang Tse [Mon, 28 Dec 2009 20:10:00 +0000 (20:10 +0000)]
Leftover from previous commit

14 years agoInitial refactoring step for server name strings centralized generation
Yang Tse [Mon, 28 Dec 2009 20:00:41 +0000 (20:00 +0000)]
Initial refactoring step for server name strings centralized generation

14 years agoJulien Chaffraix's clarifications
Daniel Stenberg [Sun, 27 Dec 2009 20:54:26 +0000 (20:54 +0000)]
Julien Chaffraix's clarifications

14 years agoAdjust FreeBSD version check to follow FreeBSD Porter's Handbook
Yang Tse [Sun, 27 Dec 2009 02:31:29 +0000 (02:31 +0000)]
Adjust FreeBSD version check to follow FreeBSD Porter's Handbook

http://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.html

14 years agosymbols added in the CVS version meant for 7.20.0
Daniel Stenberg [Sat, 26 Dec 2009 18:42:25 +0000 (18:42 +0000)]
symbols added in the CVS version meant for 7.20.0

14 years agoglobal variables reordering/refactoring/commenting
Yang Tse [Sat, 26 Dec 2009 18:32:19 +0000 (18:32 +0000)]
global variables reordering/refactoring/commenting

14 years agoadd pointer to the bug report
Daniel Stenberg [Fri, 25 Dec 2009 23:35:16 +0000 (23:35 +0000)]
add pointer to the bug report

14 years ago- Renato Botelho and Peter Pentchev brought a patch that makes the libcurl
Daniel Stenberg [Fri, 25 Dec 2009 23:32:01 +0000 (23:32 +0000)]
- Renato Botelho and Peter Pentchev brought a patch that makes the libcurl
  headers work correctly even on FreeBSD systems before v8.

14 years agofirst shot at actually doing the SMTP upload as well, not doing the proper
Daniel Stenberg [Fri, 25 Dec 2009 22:50:11 +0000 (22:50 +0000)]
first shot at actually doing the SMTP upload as well, not doing the proper
end-of-body treatment

14 years agoWhen verifying the SMTP server I had to add some hackery since SMTP in itself
Daniel Stenberg [Fri, 25 Dec 2009 22:21:46 +0000 (22:21 +0000)]
When verifying the SMTP server I had to add some hackery since SMTP in itself
doesn't really return any body data to check so I made SMTP check "headers"
as well.

14 years agofirst basic SMTP support
Daniel Stenberg [Fri, 25 Dec 2009 22:20:37 +0000 (22:20 +0000)]
first basic SMTP support

14 years agoAdjust test number mismatch
Yang Tse [Thu, 24 Dec 2009 12:04:33 +0000 (12:04 +0000)]
Adjust test number mismatch

14 years agoEnable warnings
Yang Tse [Thu, 24 Dec 2009 12:01:53 +0000 (12:01 +0000)]
Enable warnings

14 years agoFix warnings
Yang Tse [Thu, 24 Dec 2009 12:00:43 +0000 (12:00 +0000)]
Fix warnings

14 years agoFix warnings
Yang Tse [Wed, 23 Dec 2009 18:46:55 +0000 (18:46 +0000)]
Fix warnings

14 years agoBack out some pingpong server stopping changes introduced last week in
Yang Tse [Wed, 23 Dec 2009 15:20:20 +0000 (15:20 +0000)]
Back out some pingpong server stopping changes introduced last week in
order to re-use 'classic' stopping and allow taking test-suite run time
references from this state.

14 years agouse Time::HiRes whenever available, independently of perl version
Yang Tse [Tue, 22 Dec 2009 13:46:06 +0000 (13:46 +0000)]
use Time::HiRes whenever available, independently of perl version

14 years agolog a message when continuing once sleep time is over
Yang Tse [Tue, 22 Dec 2009 13:45:01 +0000 (13:45 +0000)]
log a message when continuing once sleep time is over

14 years ago- Ingmar Runge noticed that Windows config-win32.h configuration file
Yang Tse [Mon, 21 Dec 2009 16:55:39 +0000 (16:55 +0000)]
- Ingmar Runge noticed that Windows config-win32.h configuration file
  did not include a definition for HAVE_CLOSESOCKET which resulted in
  function close() being inappropriately used to close sockets.

14 years agoMake 'classic' output end of a test-suite run become again the end
Yang Tse [Mon, 21 Dec 2009 15:50:24 +0000 (15:50 +0000)]
Make 'classic' output end of a test-suite run become again the end
of output, even when run time statistics are shown.

14 years agoMove stopping of servers instructed by test definition, after the removal of
Yang Tse [Mon, 21 Dec 2009 14:53:07 +0000 (14:53 +0000)]
Move stopping of servers instructed by test definition, after the removal of
server logs advisor read lock and before test results verifications are done.

When stopping a pingpong server, stop server before its slaves.

14 years agotest 566 was missing
Daniel Stenberg [Mon, 21 Dec 2009 14:51:07 +0000 (14:51 +0000)]
test 566 was missing

14 years agodead_child_handler also takes care of reaping pingpong server dead child processes
Yang Tse [Mon, 21 Dec 2009 14:43:29 +0000 (14:43 +0000)]
dead_child_handler also takes care of reaping pingpong server dead child processes

14 years agoReap processes dead children ASAP without blocking
Yang Tse [Mon, 21 Dec 2009 14:36:01 +0000 (14:36 +0000)]
Reap processes dead children ASAP without blocking

14 years agoReinstate hi resolution time logging since this is not what is
Yang Tse [Mon, 21 Dec 2009 14:33:01 +0000 (14:33 +0000)]
Reinstate hi resolution time logging since this is not what is
now adding 90 extra seconds to the total time some autobuilds
need to make a full test-run.

14 years agoTake new SMTP definitions into account in OS400 wrapper and RPG binding
Patrick Monnerat [Mon, 21 Dec 2009 12:26:48 +0000 (12:26 +0000)]
Take new SMTP definitions into account in OS400 wrapper and RPG binding

14 years agofirst small steps towards smtp
Daniel Stenberg [Mon, 21 Dec 2009 08:33:47 +0000 (08:33 +0000)]
first small steps towards smtp

14 years agoReplaced tabs with spaces
Yang Tse [Mon, 21 Dec 2009 02:37:23 +0000 (02:37 +0000)]
Replaced tabs with spaces

14 years agoremove some unused code
Daniel Stenberg [Sun, 20 Dec 2009 22:11:16 +0000 (22:11 +0000)]
remove some unused code

14 years agoImprove delay command interruptability
Yang Tse [Sun, 20 Dec 2009 22:09:53 +0000 (22:09 +0000)]
Improve delay command interruptability

14 years agorevert that, we already had a function named like that!
Daniel Stenberg [Sun, 20 Dec 2009 22:08:06 +0000 (22:08 +0000)]
revert that, we already had a function named like that!

14 years agorename the verifyftp function to verifyserver since it is used to verify
Daniel Stenberg [Sun, 20 Dec 2009 22:00:23 +0000 (22:00 +0000)]
rename the verifyftp function to verifyserver since it is used to verify
a wide variety of protocol servers

14 years agofree the allocated mailbox name at disconnect
Daniel Stenberg [Sun, 20 Dec 2009 11:10:08 +0000 (11:10 +0000)]
free the allocated mailbox name at disconnect

14 years agointroducing the first IMAP FETCH test
Daniel Stenberg [Sun, 20 Dec 2009 11:07:04 +0000 (11:07 +0000)]
introducing the first IMAP FETCH test

14 years ago- Attempt to fix script compilation failure on versions older than 5.007003,
Yang Tse [Sun, 20 Dec 2009 03:48:32 +0000 (03:48 +0000)]
- Attempt to fix script compilation failure on versions older than 5.007003,
  corelist -a Time::HiRes lists this as the first version released with it.

- Ensure ftp check delay timer is always an integral number.

14 years agosupport IMAP select and LOGOUT
Daniel Stenberg [Sat, 19 Dec 2009 23:23:26 +0000 (23:23 +0000)]
support IMAP select and LOGOUT

14 years agofix the ftp check delay timer to never be set below 1 to work correctly
Daniel Stenberg [Sat, 19 Dec 2009 23:10:33 +0000 (23:10 +0000)]
fix the ftp check delay timer to never be set below 1 to work correctly
in cases like test 190

14 years agofixed a precaution check in the cookie code, pointed out by Julien Chaffraix
Daniel Stenberg [Sat, 19 Dec 2009 19:20:26 +0000 (19:20 +0000)]
fixed a precaution check in the cookie code, pointed out by Julien Chaffraix

14 years agoSlack time reduction
Yang Tse [Sat, 19 Dec 2009 13:20:07 +0000 (13:20 +0000)]
Slack time reduction

14 years agoAdded runtests.pl '-r' option for run time statistics
Yang Tse [Sat, 19 Dec 2009 04:15:22 +0000 (04:15 +0000)]
Added runtests.pl '-r' option for run time statistics

14 years agoserver start and verification time as well as test preparation time
Yang Tse [Fri, 18 Dec 2009 19:17:14 +0000 (19:17 +0000)]
server start and verification time as well as test preparation time
data is required in order to closer match total test execution time.

14 years agoAdded test harness simple time execution stats
Yang Tse [Fri, 18 Dec 2009 15:23:18 +0000 (15:23 +0000)]
Added test harness simple time execution stats

14 years agoComment out hi resolution time logging to verify if this is what might
Yang Tse [Thu, 17 Dec 2009 22:28:40 +0000 (22:28 +0000)]
Comment out hi resolution time logging to verify if this is what might
be contributing 90 additional seconds to the total time some autobuilds
now need to make a full test-run.

14 years agoFix compilation failure
Yang Tse [Thu, 17 Dec 2009 20:01:24 +0000 (20:01 +0000)]
Fix compilation failure

14 years agoTest harness process control enhancements
Yang Tse [Thu, 17 Dec 2009 19:37:01 +0000 (19:37 +0000)]
Test harness process control enhancements

14 years agouh, assign the bool it points to properly
Daniel Stenberg [Thu, 17 Dec 2009 16:07:02 +0000 (16:07 +0000)]
uh, assign the bool it points to properly

14 years agoStop overloading the conn->protocol field with the PROT_MISSING bit. It
Daniel Stenberg [Thu, 17 Dec 2009 16:03:39 +0000 (16:03 +0000)]
Stop overloading the conn->protocol field with the PROT_MISSING bit. It
really didn't belong there and had no real point.

14 years agoRemove pointless storing of the protocol as a string within the connectdata
Daniel Stenberg [Thu, 17 Dec 2009 15:45:04 +0000 (15:45 +0000)]
Remove pointless storing of the protocol as a string within the connectdata
struct, and instead use the already stored string in the handler struct.

14 years ago- David Byron fixed Curl_ossl_cleanup to actually call ENGINE_cleanup when
Daniel Stenberg [Thu, 17 Dec 2009 13:29:41 +0000 (13:29 +0000)]
- David Byron fixed Curl_ossl_cleanup to actually call ENGINE_cleanup when
  available.

14 years agogettimeofday() requires perl version newer than 5.6
Yang Tse [Thu, 17 Dec 2009 03:50:32 +0000 (03:50 +0000)]
gettimeofday() requires perl version newer than 5.6

14 years agoFollow-up fix for the proxy fix I did for Jon Nelson's bug. It turned out I
Daniel Stenberg [Wed, 16 Dec 2009 23:11:47 +0000 (23:11 +0000)]
Follow-up fix for the proxy fix I did for Jon Nelson's bug. It turned out I
was a bit too quick and broke test case 1101 with that change. The order of
some of the setups is sensitive. I now changed it slightly again.

14 years agoTest harness process control enhancements
Yang Tse [Wed, 16 Dec 2009 19:55:35 +0000 (19:55 +0000)]
Test harness process control enhancements

14 years agoTest #1106 needs an ftp enabled client
Yang Tse [Wed, 16 Dec 2009 15:24:12 +0000 (15:24 +0000)]
Test #1106 needs an ftp enabled client

14 years agoTest harness process control enhancements
Yang Tse [Wed, 16 Dec 2009 15:16:06 +0000 (15:16 +0000)]
Test harness process control enhancements

14 years ago- Jon Nelson found a regression that turned out to be a flaw in how libcurl
Daniel Stenberg [Mon, 14 Dec 2009 23:16:09 +0000 (23:16 +0000)]
- Jon Nelson found a regression that turned out to be a flaw in how libcurl
  detects and uses proxies based on the environment variables. If the proxy
  was given as an explicit option it worked, but due to the setup order
  mistake proxies would not be used fine for a few protocols when picked up
  from '[protocol]_proxy'. Obviously this broke after 7.19.4. I now also added
  test case 1106 that verifies this functionality.

  (http://curl.haxx.se/bug/view.cgi?id=2913886)

14 years agoFix compiler warning
Yang Tse [Mon, 14 Dec 2009 16:05:57 +0000 (16:05 +0000)]
Fix compiler warning

14 years agoPrevent perl script dying messages in output, since tearing down the pinpong
Yang Tse [Mon, 14 Dec 2009 15:39:15 +0000 (15:39 +0000)]
Prevent perl script dying messages in output, since tearing down the pinpong
server in this way, upon sysread failures, is part of the expected behavior.

14 years agoAdjust uppercase protocol string usage
Yang Tse [Mon, 14 Dec 2009 14:42:48 +0000 (14:42 +0000)]
Adjust uppercase protocol string usage

14 years agoFix compiler warnings
Yang Tse [Mon, 14 Dec 2009 14:02:43 +0000 (14:02 +0000)]
Fix compiler warnings

14 years agoFix compiler warnings
Yang Tse [Mon, 14 Dec 2009 13:27:50 +0000 (13:27 +0000)]
Fix compiler warnings

14 years agosignal handling to cleanup on SIGINT and SIGTERM, followup
Yang Tse [Sun, 13 Dec 2009 03:45:32 +0000 (03:45 +0000)]
signal handling to cleanup on SIGINT and SIGTERM, followup

14 years agoreapply diff between revisions 1.103 and 1.102
Yang Tse [Sun, 13 Dec 2009 03:44:45 +0000 (03:44 +0000)]
reapply diff between revisions 1.103 and 1.102

14 years agoupdated with the new protocols
Daniel Stenberg [Sat, 12 Dec 2009 22:48:11 +0000 (22:48 +0000)]
updated with the new protocols

14 years agomight as well output all supported protocols at the end of configure to
Daniel Stenberg [Sat, 12 Dec 2009 22:39:29 +0000 (22:39 +0000)]
might as well output all supported protocols at the end of configure to
make it more obvious how the output will be

14 years agoshow POP3S, IMAPS and SMTPS as protocols if SSL is enabled
Daniel Stenberg [Sat, 12 Dec 2009 22:33:18 +0000 (22:33 +0000)]
show POP3S, IMAPS and SMTPS as protocols if SSL is enabled

14 years agosupport disabling POP3, IMAP and SMTP and now they also appear in curl-config
Daniel Stenberg [Sat, 12 Dec 2009 22:31:00 +0000 (22:31 +0000)]
support disabling POP3, IMAP and SMTP and now they also appear in curl-config
--protocols output

14 years agosplit out more protocol-specific structs from urldata.h into their own
Daniel Stenberg [Sat, 12 Dec 2009 22:17:51 +0000 (22:17 +0000)]
split out more protocol-specific structs from urldata.h into their own
protocol-specific header files

14 years agoIMAP, POP3 and SMTP support
Daniel Stenberg [Sat, 12 Dec 2009 22:05:11 +0000 (22:05 +0000)]
IMAP, POP3 and SMTP support

14 years agointroducing IMAP, POP3 and SMTP support (still lots of polish left to do)
Daniel Stenberg [Sat, 12 Dec 2009 21:54:01 +0000 (21:54 +0000)]
introducing IMAP, POP3 and SMTP support (still lots of polish left to do)

14 years agoPrevent rewinding unless pipelining.
Yang Tse [Fri, 11 Dec 2009 18:41:29 +0000 (18:41 +0000)]
Prevent rewinding unless pipelining.

See http://curl.haxx.se/mail/lib-2009-12/0107.html

14 years agoRemoved function prototype without implementation
Yang Tse [Fri, 11 Dec 2009 02:14:11 +0000 (02:14 +0000)]
Removed function prototype without implementation

14 years ago- Siegfried Gyuricsko found out that the curl manual said --retry would retry
Daniel Stenberg [Thu, 10 Dec 2009 21:02:11 +0000 (21:02 +0000)]
- Siegfried Gyuricsko found out that the curl manual said --retry would retry
  on FTP errors in the transient 5xx range. Transient FTP errors are in the
  4xx range. The code itself only tried on 5xx errors that occured _at login_.
  Now the retry code retries on all FTP transfer failures that ended with a
  4xx response.

  (http://curl.haxx.se/bug/view.cgi?id=2911279)

14 years agoargh, use the correct bug id
Daniel Stenberg [Thu, 10 Dec 2009 20:26:44 +0000 (20:26 +0000)]
argh, use the correct bug id

14 years ago- Constantine Sapuntzakis figured out a case which would lead to libcurl
Daniel Stenberg [Thu, 10 Dec 2009 20:20:15 +0000 (20:20 +0000)]
- Constantine Sapuntzakis figured out a case which would lead to libcurl
  accessing alredy freed memory and thus crash when using HTTPS (with
  OpenSSL), multi interface and the CURLOPT_DEBUGFUNCTION and a certain order
  of cleaning things up. I fixed it.

  (http://curl.haxx.se/bug/view.cgi?id=2891591)

14 years agominor indent change
Daniel Stenberg [Thu, 10 Dec 2009 20:19:56 +0000 (20:19 +0000)]
minor indent change

14 years ago- Fixed curl erroneously reporting output stream write failures with disabled buffering
Yang Tse [Thu, 10 Dec 2009 16:46:21 +0000 (16:46 +0000)]
- Fixed curl erroneously reporting output stream write failures with disabled buffering

14 years agosignal handling to cleanup on SIGINT and SIGTERM, followup
Yang Tse [Wed, 9 Dec 2009 18:41:43 +0000 (18:41 +0000)]
signal handling to cleanup on SIGINT and SIGTERM, followup

14 years ago- Martin Storsjo made libcurl use the Expect: 100-continue header for posts
Daniel Stenberg [Mon, 7 Dec 2009 20:25:17 +0000 (20:25 +0000)]
- Martin Storsjo made libcurl use the Expect: 100-continue header for posts
  with unknown size. Previously it was only used for posts with a known size
  larger than 1024 bytes.

14 years ago74. The HTTP spec allows headers to be merged and become comma-separated
Daniel Stenberg [Fri, 4 Dec 2009 21:52:58 +0000 (21:52 +0000)]
74. The HTTP spec allows headers to be merged and become comma-separated
  instead of being repeated several times. This also include Authenticate: and
  Proxy-Authenticate: headers and while this hardly every happens in real life
  it will confuse libcurl which does not properly support it for all headers -
  like those Authenticate headers.

14 years agoFix 'uploaded' file descriptor leak
Yang Tse [Thu, 3 Dec 2009 20:37:49 +0000 (20:37 +0000)]
Fix 'uploaded' file descriptor leak

14 years agosignal handling to cleanup on SIGINT and SIGTERM
Yang Tse [Thu, 3 Dec 2009 13:12:04 +0000 (13:12 +0000)]
signal handling to cleanup on SIGINT and SIGTERM

14 years agolib/nss.c: avoid use of uninitialized value
Kamil Dudka [Wed, 2 Dec 2009 17:24:38 +0000 (17:24 +0000)]
lib/nss.c: avoid use of uninitialized value

14 years agosignal handling to cleanup on SIGINT and SIGTERM
Yang Tse [Wed, 2 Dec 2009 15:02:30 +0000 (15:02 +0000)]
signal handling to cleanup on SIGINT and SIGTERM

14 years agoSet socket option SO_REUSEADDR=true on stunnel accept'ing port
Yang Tse [Tue, 1 Dec 2009 15:36:34 +0000 (15:36 +0000)]
Set socket option SO_REUSEADDR=true on stunnel accept'ing port