summaryrefslogtreecommitdiffstats
path: root/tests/http.test
Commit message (Collapse)AuthorAgeFilesLines
* * doc/http.n (http::config): add -urlencoding option (default utf-8)hobbs2004-05-251-9/+55
| | | | | | | | | * 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.
* * library/http/pkgIndex.tcl: merged to v2.4.4 from headhobbs2003-07-181-1/+7
| | | | | * library/http/http.tcl: add support for user:pass info in URL. * tests/http.test: [Bug 759888] (shiobara)
* Corrected a problem where http-4.14 would fail when run with a proxy Kevin B Kenny2003-02-111-3/+3
| | | | server. Replaced references to scriptics.com by tcl.tk.
* fix to crashing filesystem testvincentdarley2003-02-071-1/+3
|
* [info exist]->[info exists]. [Bug 602566]dkf2002-10-031-3/+3
|
* * tests/http.test (http-3.11): added close $fp that was causing anhobbs2002-09-021-1/+2
| | | | error on Windows because the file was not closed before deleting.
* Made many tests work properly when the current directory is not writable.dkf2002-07-051-16/+23
| | | | Added targets to unix/Makefile.in to facilitate testing of this situation.
* * doc/tcltest.n: Reverted [makeFile] and [viewFile] todgp2002-07-021-3/+3
| | | | | | | | * library/tcltest/tcltest.tcl: their former behavior, and documented * tests/cmdAH.test: it. Corrected misspelling of hook * tests/event.test: procedure. Restored tests. * tests/http.test: * tests/io.test:
* * Fixed [makeFile] and [viewFile] to accurately reflect a file'sdgp2002-07-011-11/+10
| | | | | | contents. Updated tests that depended on buggy behavior. Also added warning messages to "-debug 1" operations to debug test calls to (make|remove)(File|Directory).
* * Corrections to tcltest and the Tcl test suite so that a testdgp2002-06-221-1/+2
| | | | | | | with options -constraints knownBug -limitConstraints 1 only tests the knownBug tests. Mostly involves replacing direct access to the testConstraints array with calls to the testConstraint command (which requires tcltest version 2).
* added removeFile for outdatahobbs2001-10-121-1/+4
|
* * doc/http.n: noted -binary, charset and coding state keys.hobbs2001-09-071-5/+11
| | | | | | | | | | * 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]
* * tests/http.test (http-4.14): fixed variable error return.hobbs2001-08-071-2/+2
| | | | [Bug: 424252]
* tests/http.test: removed unused notLinux constraint settinghobbs2001-05-211-3/+1
|
* reduced unnecessary iterations in http-3.13hobbs2000-06-021-3/+3
|
* 2000-05-29 Sandeep Tamhankar <sandeep@scriptics.com>hobbs2000-06-021-2/+11
| | | | | | | | | | | | | | | * 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-2/+1
| | | | | | | | | | | * 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).
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* Added "server closes without reading post data" case.welch2000-04-091-24/+84
|
* * library/http2.1/http.tcl: Added -querychannel option and alteredsandeep2000-03-191-4/+38
| | | | | | | | | | | | | | | | | | | | | | 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).
* Added tests for -queryprogresswelch2000-03-171-1/+24
|
* Took out "nonPortable" flag that was hiding -timeout tests,welch1999-11-221-4/+45
| | | | plus added more timeout cases for various bad host/port combinations.
* updated to 2.2 version for httphobbs1999-11-201-5/+5
|
* changed http package version from 2.0 to 2.1hershey1999-07-201-2/+2
|
* Marked two timing-dependent tests "nonPortable",welch1999-07-071-3/+3
| | | | but I really need to fix these (4.11 and 4.12)
* Fixed package version numberwelch1999-07-021-4/+4
|
* Modified the tests to use the package tcltestjenn1999-06-261-5/+6
|
* added code to unset the "data" array so tests that follow can use a scalarhershey1999-06-081-3/+4
| | | | data var w/o having to unset it first.
* changed call to "remove" to "removeFile"--this bug was causing "httpd" filehershey1999-05-181-2/+2
| | | | to be left in working dir whenever tests are run.
* * tests/http.test: Unset "data" array before running tests tostanton1999-05-061-1/+2
| | | | avoid failures due to previous tests.
* merged 8.1.0 changes into mainlinestanton1999-04-241-14/+16
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-152/+50
|
* Fixed timeout-related HTTP testwelch1998-11-031-2/+10
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+409