summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate unneccessary spacesnijtmans2009-11-181-4/+4
|
* Fix [Bug 2891171]: URL checking too strict when using multiple question marksnijtmans2009-11-111-17/+17
|
* Correct handling of quoted charset names. [Bug 2849860]dkf2009-09-101-3/+9
|
* Removed newline appended to POST data.patthoyts2009-04-191-3/+2
| | | | Added tests to check that the data provided by a POST is as stated in the content-length [Bug 2715421]
* Improved HTTP/1.1 support and added specific HTTP/1.1 testing.patthoyts2009-04-101-112/+145
| | | | | | | | This patch makes use of the 8.6 zlib support to provide for deflate and gzip support and handles the -channel option with compression and chunked transfer encoding. For the -handler option we currently disable HTTP/1.1 features as we cannot properly pass the data through to the caller.
* * library/http/http.tcl: Handle incomplete lines in thedgp2009-04-091-2/+3
| | | | "connecting" state. Thanks to Sergei Golovan. [Bug 26245326]
* Added support for 8.6's zlib integration.dkf2009-02-241-137/+176
|
* Fixed a failure to read SHOUTcast streams with the new 2.7patthoyts2008-10-231-7/+10
| | | | | package. Introduced a new intial state as the first response may not be HTTP*.
* * library/http/http.tcl: Remove 8.5 requirement.dgp2008-08-111-2/+2
| | | | | | | * 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.
* * library/http/http.tcl: Bump http version to 2.7.1 to accountdgp2008-08-111-3/+3
| | | | | | | | * 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-121-121/+477
| | | | | | | | | | | | * 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-261-9/+15
| | | | 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-221-4/+4
| | | | 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-161-3/+3
| | | | | * 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-071-2/+2
| | | | | * 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-071-2/+2
| | | | | | * 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-151-2/+2
|
* * 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-061-24/+20
|
* * doc/http.n (http::config): add -urlencoding option (default utf-8)hobbs2004-05-251-18/+19
| | | | | | | | | * 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-181-4/+6
| | | | | * 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-191-8/+9
| | | | | | | | | | | | | | | * 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-051-3/+3
| | | | ::error was intended. Bump to http 2.4.2.
* * library/http/pkgIndex.tcl:hobbs2002-01-251-3/+9
| | | | | * 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-071-3/+5
| | | | reflecting the new features just added.
* * doc/http.n: noted -binary, charset and coding state keys.hobbs2001-09-071-31/+56
| | | | | | | | | | * 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-091-3/+4
| | | | | 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-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
|