summaryrefslogtreecommitdiffstats
path: root/library/http
Commit message (Collapse)AuthorAgeFilesLines
* Horrible hack to keep the old error message.dkf2005-01-061-3/+11
|
* Performance updates to http::mapReply [1020491] and fix version numbering.dkf2005-01-062-26/+22
|
* * doc/http.n (http::config): add -urlencoding option (default utf-8)hobbs2004-05-252-19/+20
| | | | | | | | | * library/http/http.tcl: that specifies encoding conversion of * library/http/pkgIndex.tcl: args for http::formatQuery. Previously * tests/http.test: undefined, RFC 2718 says it should be utf-8. 'http::config -urlencoding {}' returns previous behavior, which will throw errors processing non-latin-1 chars. Bumped http package to 2.5.0.
* Correctly check the types of boolean options to http::geturl [Bug 811170]dkf2003-09-291-7/+14
|
* Fixed comment typos.patthoyts2003-09-151-6/+6
|
* * library/http/pkgIndex.tcl: upped to http v2.4.4hobbs2003-07-182-5/+7
| | | | | * library/http/http.tcl: add support for user:pass info in URL. * tests/http.test: [Bug 759888] (shiobara)
* * library/auto.tcl: Replaced [regexp] and [regsub] withdgp2003-03-192-9/+10
| | | | | | | | | | | | | | | * library/history.tcl: [string map] where possible. Thanks * library/ldAout.tcl: to David Welton. [Bugs 667456,667558] * library/safe.tcl: Bumped to http 2.4.3, opt 0.4.5, and * library/http/http.tcl: tcltest 2.2.3. * library/http/pkgIndex.tcl: * library/opt/optparse.tcl: * library/opt/pkgIndex.tcl: * library/tcltest/tcltest.tcl: * library/tcltest/pkgIndex.tcl: * tools/genStubs.tcl: * tools/tcltk-man2html.tcl: * unix/mkLinks.tcl:
* [info exist]->[info exists]. [Bug 602566]dkf2002-10-031-3/+3
|
* * README: Bumped version number to 8.4b3 to distinguishdgp2002-08-201-1/+2
| | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: HEAD from the 8.4b2 release. * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf * win/configure: * library/http/http.tcl: Corrected installation directory of * library/msgcat/msgcat.tcl: the package tcltest 2.2. Added * library/opt/optparse.tcl: comments in other packages to remind * library/tcltest/tcltest.tcl: that installation directories need * unix/Makefile.in: updates to match increasing version * win/Makefile.in: numbers. [Bug 597450] * win/makefile.bc: * win/makefile.vc:
* * Corrected use of http::error whendgp2002-02-052-4/+4
| | | | ::error was intended. Bump to http 2.4.2.
* * library/http/pkgIndex.tcl:hobbs2002-01-252-4/+10
| | | | | * library/http/http.tcl: don't add port in default case to handle broken servers. http bumped to 2.4.1 [Bug #504508]
* * Updated http package to version 2.4,dgp2001-09-072-4/+6
| | | | reflecting the new features just added.
* * doc/http.n: noted -binary, charset and coding state keys.hobbs2001-09-072-32/+57
| | | | | | | | | | * tests/http.test: * library/http/pkgIndex.tcl: * library/http/http.tcl (geturl): correctly get charset parameter and convert text according to specified encoding (if known). RFC iso8859-1 is used by default. Also recognize Content-encoding to see if we should do binary translation. Added a CYA -binary switch for the cases that were missed. [Bug #219211 #219399]
* * library/http/http.tcl (geturl): added port number to Host:hobbs2001-08-211-3/+3
| | | | header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217]
* Added checks for package dependencies.dgp2001-08-092-4/+6
| | | | | Bumped patchlevels of changed packages: http 2.3.2, msgcat 1.2.2, opt 0.4.3, tcltest 2.0.1. [Patch 448931]
* Update the http package version number now as we change it, so we don'tdgp2001-08-021-1/+1
| | | | forget to do it later when we release it.
* Update the http package version number now as we change it, so we don'tdgp2001-08-021-3/+3
| | | | forget to do it later when we release it.
* * library/http/http.tcl (http::mapReply): the regsub'ing of \n andhobbs2001-08-021-4/+2
| | | | \t to escape them was unnecessary.
* 2000-05-29 Sandeep Tamhankar <sandeep@scriptics.com>hobbs2000-06-021-23/+40
| | | | | | | | | | | | | | | * tests/http.test * doc/http.n * library/http2.3/http.tcl: Fixed bug 5741, where unsuccessful geturl calls sometimes leaked memory and resources (sockets). Also, switched around some of the logic so that http::wait never throws an exception. This is because in an asynchronous geturl, the command callback will probably end up doing all the error handling anyway, and in an asynchronous situation, the user expects to check the state when the transaction completes, as opposed to being thrown an exception. For the http package, this menas the user can check http::status for "error" and http::error for the error message after doing the http::wait.
* 2000-04-21 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-04-221-9/+19
| | | | | | | | | | | * library/http2.1/http.tcl: Fixed a newly introduced bug where if there's a -command callback and something goes wrong, geturl threw an exception, called the callback, and unset the token. I changed it so that it will not call the callback when throwing an exception (so the caller only finds out about a given error from one place). Also, fixed http::ncode so that it actually gives you back the http return code (i.e. 200, 404, etc.) instead of the first digit of the version of HTTP being used (i.e. 1).
* More thrashing with the "server closeswelch2000-04-221-14/+30
| | | | | | without reading post data" scenario. Reverted to the previous filevent configuratiuon, which seems to work better with small amounts of post data.
* Adjusted file events and unified error handling.welch2000-04-091-71/+110
|
* 2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-04-051-2/+2
| | | | | | | | | | * library/http2.1/http.tcl: For the -querychannel option, fconfigure the socket to be binary so that we don't translate anything while reading the data. This is because we determine the content length of the data on the channel by using seek (to the end of the file) and tell on the file handle, and we need the content-length to match the amount of data actually sent, and translation can affect the number of bytes posted.
* 2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-291-4/+3
| | | | | | | | | | | | | * library/http2.1/http.tcl: Removed an unnecessary fileevent statement from the error processing part of the Write method. Also, fixed two potential memory leaks in wait and reset, in which the state array wasn't being unset before throwing an exception. Prior to this version, Brent checked in a fix to catch a fileevent statement that was sometimes causing a stack trace when geturl was called with -timeout. I believe Brent's fix is necessary because TLS closes bad sockets for secure connections, and the fileevent was trying to act on a socket that no longer existed.
* Added catch around fileevent to fix test suite failurewelch2000-03-271-2/+2
|
* 2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-221-2/+3
| | | | | | * library/http2.1/http.tcl: Fixed a bug where string query data that was bigger than queryblocksize would get duplicate characters at block boundaries.
* 2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-221-2/+3
| | | | | | | | | | * library/http2.1/http.tcl: Fixed bug 4463, where we were getting a stack trace if we tried to publish a project to a good host but a port where there was no server listening. It turned out the problem was a stray fileevent that needed to be cleared. Also, fixed a bug where http::code could stack trace if called on a bad token (one which didn't represent a successful geturl) by adding an http element to the state array in geturl.
* 2000-03-19 Sandeep Tamhankar <sandeep@scriptics.com>scriptics_sc_2_0_b1sandeep2000-03-191-5/+10
| | | | | | | | * library/http2.1/http.tcl: geturl used to throw an exception when the connection failed; I accidentally returned a token with the error info, breaking backwards compatibility. I changed it back to throwing an exception, but unsetting the state array first (thus still eliminating the original memory leak problem).
* * library/http2.1/http.tcl: Added -querychannel option and alteredsandeep2000-03-191-66/+98
| | | | | | | | | | | | | | | | | | | | | | some of Brent's modifications to allow asynchronous posts (via -command). Also modified -queryprogress so that it calls the query callback as <callback> <token> <total size> <current size> to be consistent with -progress. Added -queryblocksize option with default 8192 bytes for post blocksize. Fixed a bunch of potential memory leaks for the case when geturl receives bad args or can't open a socket, etc. Overall, the package really rocks now. * doc/http.n: Added -queryblocksize, -querychannel, and -queryprogress. Also, changed the description of -blocksize, which states that the -progress callback will be called for each block, to now qualify that with an "if -progress is specified". * tests/http.test: Added a querychannel test for synchronous and asynchronous posts, altered the queryprogress test such that the callback conforms to the -progress format. Also, had to use the -queryblocksize option to do the post 16K at a time to match Brent's expected results (and to test that -queryblocksize works).
* updated package index file to use version 2.3 instead of 2.2.hershey2000-03-181-1/+1
|
* Added -queryprogress callback towelch2000-03-171-4/+90
| | | | | | | | http::geturl and also changed it so that writing the post data is event driven if the queryprogress callback or a timeout is given. This allows a timeout to occur when writing lots of post data. The queryprogress callback is called after each block of query data is posted. It has the same signature as the -progress callback.
* * library/http1.0/http.tcl:hobbs2000-02-011-2/+2
| | | | | * library/http2.1/http.tcl: The query data POSTed was newline terminated when it shouldn't be altered [Bug: 4089]
* * library/http2.1/http.tcl: trim value for $state(meta) keyhobbs2000-01-111-2/+2
|
* * library/http2.1/http.tcl: fixed error handling in http::Eventhobbs1999-12-041-4/+3
| | | | [Bug: 3752]
* *** empty log message ***hobbs1999-11-191-2/+2
|
* * library/http2.1/http.tcl:hobbs1999-11-192-3/+3
| | | | * library/http2.1/pkgIndex.tcl: updated http package to 2.2
* * library/http2.1/http.tcl: added register and unregisterhobbs1999-11-191-9/+61
| | | | | commands to http:: package (better support for tls/SSL), as well as -type argument to http::geturl. [RFE: 2617]
* Improved error handling of http::geturl in the case the server iswelch1999-11-181-34/+134
| | | | | not available. Also correctly fixed the bug between -timeout and a subsequent http::status call.
* *** empty log message ***hobbs1999-11-101-2/+2
|
* Fixed bug in the handling of the status code after an asynchronous connect,welch1999-10-301-3/+2
| | | | e.g., one that is used with the -timeout flag.
* * library/http2.1/http.tcl: protected gets with catch [Bug: 2665]hobbs1999-10-211-2/+4
|
* * library/http2.1/http.tcl: fixed possible use of global c var.hobbs1999-10-051-4/+3
|
* 1999-08-18 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-191-14/+10
| | | | | | | | | | | | | * library/auto.tcl: * library/init.tcl: * library/ldAout.tcl: * library/package.tcl: * library/safe.tcl: * library/word.tcl: * library/http2.1/http.tcl: * library/msgcat1.0/msgcat.tcl: updated libraries to better Tcl style guide (no more string comparisons with == or !=, spacing changes).
* 1999-08-05 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-051-2/+3
| | | | | * library/http2.1/http.tcl: Made use of "i" in init section not use global var and start at 0 (was 1). [Bug: 2502]
* changed http package version from 2.0 to 2.1hershey1999-07-201-2/+2
|
* Fixed handling of connection timeouts.welch1999-07-071-1/+4
|
* Updated for new package version numberwelch1999-07-011-2/+2
|
* Fixed -timeout bug to handle connections to dead servers properly.welch1999-06-301-9/+67
| | | | Added http::cleanup function
* * library/http2.0/http.tcl: Added catch around eof test instanton1999-02-021-2/+3
| | | | | CopyDone since the user may have already called http::reset. [Bug: 1108]
* Making it possible for http -command callbacks to safelyscriptics_tclpro_1_2_b1welch1999-01-191-2/+5
| | | | uset the state array.