From ee92191f9f0f2df925a0f34cb823c663217cff17 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 7 Sep 2001 02:43:38 +0000 Subject: * Updated http package to version 2.4, reflecting the new features just added. FossilOrigin-Name: e34ff11fb384a0af7151354f538797fcedc8c013 --- ChangeLog | 10 ++++++++++ doc/http.n | 4 ++-- library/http/http.tcl | 8 +++++--- library/http/pkgIndex.tcl | 2 +- tools/tcl.wse.in | 4 ++-- tools/tclmin.wse | 8 ++++---- unix/Makefile.in | 10 +++++----- win/Makefile.in | 8 ++++---- win/makefile.vc | 10 +++++----- 9 files changed, 38 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b4640e..2583326 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-09-06 Don Porter + + * doc/http.n: + * library/http/*.tcl: + * tools/tcl.wse.in: + * tools/tclmin.wse: + * unix/Makefile.in: + * win/{Mm}akefile.*: Updated http package to version 2.4, + reflecting the new features just added. + 2001-09-06 Jeff Hobbs * doc/http.n: noted -binary, charset and coding state keys. diff --git a/doc/http.n b/doc/http.n index f093565..afb4ecf 100644 --- a/doc/http.n +++ b/doc/http.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: http.n,v 1.10.2.3 2001/09/07 00:10:57 hobbs Exp $ +'\" RCS: @(#) $Id: http.n,v 1.10.2.4 2001/09/07 02:43:39 dgp Exp $ '\" .so man.macros .TH "Http" n 8.3 Tcl "Tcl Built-In Commands" @@ -14,7 +14,7 @@ .SH NAME Http \- Client-side implementation of the HTTP/1.0 protocol. .SH SYNOPSIS -\fBpackage require http ?2.3.3?\fP +\fBpackage require http ?2.4?\fP .sp \fB::http::config \fI?options?\fR .sp diff --git a/library/http/http.tcl b/library/http/http.tcl index 3f196a2..627e328 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.32.2.4 2001/09/07 00:10:57 hobbs Exp $ +# RCS: @(#) $Id: http.tcl,v 1.32.2.5 2001/09/07 02:43:39 dgp Exp $ # Rough version history: # 1.0 Old http_get interface @@ -19,10 +19,12 @@ # 2.3 Added SSL support, and ability to post from a channel # This version also cleans up error cases and eliminates the # "ioerror" status in favor of raising an error +# 2.4 Added -binary option to http::geturl and charset element +# to the state array. package require Tcl 8.2 -# keep this in sink with pkgIndex.tcl -package provide http 2.3.3 +# keep this in sync with pkgIndex.tcl +package provide http 2.4 namespace eval http { variable http diff --git a/library/http/pkgIndex.tcl b/library/http/pkgIndex.tcl index 3c5d514..b7b87a9 100644 --- a/library/http/pkgIndex.tcl +++ b/library/http/pkgIndex.tcl @@ -9,4 +9,4 @@ # full path name of this file's directory. if {![package vsatisfies [package provide Tcl] 8.2]} {return} -package ifneeded http 2.3.3 [list tclPkgSetup $dir http 2.3.3 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister}}}] +package ifneeded http 2.4 [list tclPkgSetup $dir http 2.4 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister}}}] diff --git a/tools/tcl.wse.in b/tools/tcl.wse.in index b8d2188..a899376 100644 --- a/tools/tcl.wse.in +++ b/tools/tcl.wse.in @@ -1438,12 +1438,12 @@ item: Install File end item: Install File Source=${__TCLBASEDIR__}\library\http\pkgIndex.tcl - Destination=%MAINDIR%\lib\tcl%VER%\http2.3\pkgIndex.tcl + Destination=%MAINDIR%\lib\tcl%VER%\http2.4\pkgIndex.tcl Flags=0000000000000010 end item: Install File Source=${__TCLBASEDIR__}\library\http\http.tcl - Destination=%MAINDIR%\lib\tcl%VER%\http2.3\http.tcl + Destination=%MAINDIR%\lib\tcl%VER%\http2.4\http.tcl Flags=0000000000000010 end item: Install File diff --git a/tools/tclmin.wse b/tools/tclmin.wse index aa3e071..2fd8185 100644 --- a/tools/tclmin.wse +++ b/tools/tclmin.wse @@ -36,13 +36,13 @@ item: Install File Flags=0000000000000010 end item: Install File - Source=n:\dist\tcl8.0\library\http2.1\pkgIndex.tcl - Destination=%MAINDIR%\lib\tcl%VER%\http2.1\pkgIndex.tcl + Source=n:\dist\tcl8.0\library\http\pkgIndex.tcl + Destination=%MAINDIR%\lib\tcl%VER%\http2.4\pkgIndex.tcl Flags=0000000000000010 end item: Install File - Source=n:\dist\tcl8.0\library\http2.1\http.tcl - Destination=%MAINDIR%\lib\tcl%VER%\http2.1\http.tcl + Source=n:\dist\tcl8.0\library\http\http.tcl + Destination=%MAINDIR%\lib\tcl%VER%\http2.4\http.tcl Flags=0000000000000010 end item: Install File diff --git a/unix/Makefile.in b/unix/Makefile.in index 88a0eff..45bed7e 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.63.2.4 2001/04/03 23:00:17 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.63.2.5 2001/09/07 02:43:39 dgp Exp $ VERSION = @TCL_VERSION@ @@ -476,7 +476,7 @@ topDirName: gendate: yacc -l $(GENERIC_DIR)/tclGetDate.y sed -e 's/yy/TclDate/g' -e '/^#include /d' \ - -e 's?SCCSID?RCS: @(#) $$Id: Makefile.in,v 1.63.2.4 2001/04/03 23:00:17 hobbs Exp $$?' \ + -e 's?SCCSID?RCS: @(#) $$Id: Makefile.in,v 1.63.2.5 2001/09/07 02:43:39 dgp Exp $$?' \ -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ -e '/TclDatenewstate:/d' -e '/#pragma/d' \ -e '/#include /d' -e 's/const /CONST /g' \ @@ -552,7 +552,7 @@ install-libraries: libraries else true; \ fi; \ done; - @for i in http2.3 http1.0 opt0.4 encoding msgcat1.1 tcltest1.0; \ + @for i in http2.4 http1.0 opt0.4 encoding msgcat1.1 tcltest1.0; \ do \ if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \ echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ @@ -580,10 +580,10 @@ install-libraries: libraries do \ $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http1.0; \ done; - @echo "Installing library http2.3 directory"; + @echo "Installing library http2.4 directory"; @for j in $(TOP_DIR)/library/http/*.tcl ; \ do \ - $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.3; \ + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.4; \ done; @echo "Installing library opt0.4 directory"; @for j in $(TOP_DIR)/library/opt/*.tcl ; \ diff --git a/win/Makefile.in b/win/Makefile.in index 3148166..04d0465 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.33.2.5 2001/08/04 00:33:59 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.33.2.6 2001/09/07 02:43:39 dgp Exp $ VERSION = @TCL_VERSION@ @@ -483,7 +483,7 @@ install-libraries: libraries else true; \ fi; \ done; - @for i in http1.0 http2.3 opt0.4 encoding msgcat1.1 tcltest1.0; \ + @for i in http1.0 http2.4 opt0.4 encoding msgcat1.1 tcltest1.0; \ do \ if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \ echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ @@ -507,10 +507,10 @@ install-libraries: libraries do \ $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http1.0"; \ done; - @echo "Installing library http2.3 directory"; + @echo "Installing library http2.4 directory"; @for j in $(ROOT_DIR)/library/http/*.tcl; \ do \ - $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http2.3"; \ + $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http2.4"; \ done; @echo "Installing library opt0.4 directory"; @for j in $(ROOT_DIR)/library/opt/*.tcl; \ diff --git a/win/makefile.vc b/win/makefile.vc index 01aedc4..cd99cf9 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -6,7 +6,7 @@ # Copyright (c) 1995-1996 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. # -# RCS: @(#) $Id: makefile.vc,v 1.50.2.2 2001/04/03 22:54:39 hobbs Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.50.2.3 2001/09/07 02:43:39 dgp Exp $ # Does not depend on the presence of any environment variables in # order to compile tcl; all needed information is derived from @@ -388,10 +388,10 @@ install-libraries: -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\http1.0" -@copy "$(ROOT)\library\http1.0\http.tcl" "$(SCRIPT_INSTALL_DIR)\http1.0" -@copy "$(ROOT)\library\http1.0\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\http1.0" - @echo installing http2.3 - -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\http2.3" - -@copy "$(ROOT)\library\http\http.tcl" "$(SCRIPT_INSTALL_DIR)\http2.3" - -@copy "$(ROOT)\library\http\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\http2.3" + @echo installing http2.4 + -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\http2.4" + -@copy "$(ROOT)\library\http\http.tcl" "$(SCRIPT_INSTALL_DIR)\http2.4" + -@copy "$(ROOT)\library\http\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\http2.4" @echo installing opt0.4 -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\opt0.4" -@copy "$(ROOT)\library\opt\optparse.tcl" "$(SCRIPT_INSTALL_DIR)\opt0.4" -- cgit v0.12