summaryrefslogtreecommitdiffstats
path: root/library/http
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a failure to read SHOUTcast streams with the new 2.7patthoyts2008-10-232-8/+11
| | | | | package. Introduced a new intial state as the first response may not be HTTP*.
* * library/http/http.tcl: Remove 8.5 requirement.dgp2008-08-112-3/+3
| | | | | | | * library/http/pkgIndex.tcl: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc:
* Remove the 8.5+ requirement to avoid problems with shipping http as a tcl ↵patthoyts2008-08-111-4/+4
| | | | module.
* &#(*& typo!dgp2008-08-111-1/+1
|
* * library/http/http.tcl: Bump http version to 2.7.1 to accountdgp2008-08-112-5/+5
| | | | | | | | * library/http/pkgIndex.tcl: for [Bug 2046486] bug fix. This * unix/Makefile.in: release of http now requires a * win/Makefile.in: dependency on Tcl 8.5 to be able to * win/makefile.bc: use the unsigned formats in the * win/makefile.vc: [binary scan] command.
* crc field from zlib data should be treated as unsigned for 64bit support ↵patthoyts2008-08-111-2/+2
| | | | [Bug 2046846]
* change http::geturl -keepalive default to 0 as it has poor true pipeline supporthobbs2008-03-121-2/+3
|
* * unix/Makefile.in (install-libraries): Bump http to 2.7hobbs2008-03-122-130/+478
| | | | | | | | | | | | * win/Makefile.in (install-libraries): Added -myaddr option to allow * library/http/http.tcl (http::geturl): control of selected socket * library/http/pkgIndex.tcl: interface. [Bug 559898] * doc/http.n, tests/http.test: Added -keepalive and -protocol 1.1 with chunked transfer encoding support. [Bug 1063703, 1470377, 219225] Added ability to override Host in -headers. [Bug 928154] Added -strict option to control URL validation on per-call basis. [Bug 1560506]
* * library/http/http.tcl (http::geturl): add -method option to supporthobbs2008-03-121-4/+9
| | | | | * tests/http.test (http-3.1): http PUT and DELETE requests. * doc/http.n: [Bug 1599901, 862554]
* * library/http/http.tcl: whitespace changes, code cleanup. Allowhobbs2008-03-121-49/+50
| | | | http to be re-sourced without overwriting http state.
* bug #705956 - fix inverted logic when cleaning up socket error in geturl. ↵patthoyts2008-02-271-16/+28
| | | | Document meta accessor.
* Set version 2.5.5patthoyts2008-02-262-10/+16
| | | | bug #1868845 - it is better to do the [eof] check after trying to read from the socket. No clashes found in testing. Added http::meta command to access the http headers.
* Fix for bug #1818565. Always check that the state array exists in the ↵patthoyts2008-02-222-5/+5
| | | | http::status command. Set version 2.5.4
* Fix documentation typospatthoyts2007-03-121-6/+6
|
* * library/http/http.tcl (http::geturl): only do geturl url rfchobbs2006-10-061-4/+8
| | | | | 3986 validity checking if $::http::strict is true (default true for 8.5). [Bug 1560506]
* * library/http/http.tcl: Change " " -> "+" url encoding mappinghobbs2006-09-162-4/+4
| | | | | * library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986. * tests/http.test (http-5.1): bump http to 2.5.3
* * unix/Makefile.in: Package http 2.5.2 requires Tcl 8.4, sodgp2006-03-072-3/+3
| | | | | * win/Makefile.in: the *.tm installation has to be placed in an "8.4" directory, not an "8.2" directory.
* * library/http/http.tcl: Bump to version 2.5.3 to cover bug fixdgp2006-03-072-3/+3
| | | | | | * library/http/pkgIndex.tcl: in URL parsing. [Bug 1358369] * unix/Makefile.in: * win/Makefile.in:
* Fix silly errors in REs, in variables, and in tests that were working withdkf2005-11-181-8/+8
| | | | invalid URLs.
* Improved URL validation that better describes why validation failed. [Bug ↵dkf2005-11-181-97/+199
| | | | 1358369]
* Bump to http 2.5.2 to cover changing rules in [http::mapReply] [1182373]dgp2005-11-152-3/+3
|
* * tests/http.test: do not URI encode -._~ accordinghobbs2005-10-051-4/+8
| | | | * library/http/http.tcl (init): to RFC3986. [Bug 1182373] (aho)
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* 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.