Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unneeded backslash | jan.nijtmans | 2023-03-19 | 1 | -3/+3 |
| | |||||
* | one too much "-profile tcl8" | jan.nijtmans | 2023-03-18 | 1 | -1/+1 |
| | |||||
* | Make http package use "-profile tcl8", irrespective of the default profile ↵ | jan.nijtmans | 2023-03-18 | 1 | -3/+24 |
| | | | | in Tcl, until decided differently | ||||
* | http 2.10a4 -> 2.10b1, for upcoming release | jan.nijtmans | 2022-11-16 | 2 | -2/+2 |
| | |||||
* | Bugfix to socketPhQueue. Add some Log commands for debugging. | kjnash | 2022-11-09 | 1 | -2/+9 |
| | |||||
* | library/http/http.tcl - bugfix OpenSocket to replay any requests in the ↵ | kjnash | 2022-11-07 | 1 | -1/+14 |
| | | | | socketPhQueue placeholder queue, if the socket was not created. | ||||
* | library/http/http.tcl - define http::socketProxyId and use it to record the ↵ | kjnash | 2022-11-07 | 1 | -2/+45 |
| | | | | proxy (if any) used by each persistent socket. Minor fix to socketPhQueue. | ||||
* | library/http/http.tcl - in http::SecureProxyConnect, bugfix state(proxyUsed) ↵ | kjnash | 2022-11-07 | 1 | -3/+13 |
| | | | | so the correct value SecureProxyFailed or SecureProxy is returned. | ||||
* | library/http/http.tcl - in http::SecureProxyConnect and its caller, bugfix ↵ | kjnash | 2022-11-07 | 1 | -44/+132 |
| | | | | cleanup after 407 from HTTPS proxy. Close the connection to the proxy. Do not copy all values of state() from the proxy CONNECT to the main request, especially leave out state(sock). Raise an error for a 3xx and 401 response to CONNECT. In http::Event, trap TLS handshake errors in a place where they do not occur for a non-proxy request. | ||||
* | library/http/http.tcl - replace lremove with lreplace for compatibility with ↵ | kjnash | 2022-11-07 | 1 | -1/+1 |
| | | | | 8.6. | ||||
* | Fix bug 1173760 (proxy server for https). Add http::config options ↵ | kjnash | 2022-10-25 | 1 | -33/+302 |
| | | | | -proxynot, -proxyauth. | ||||
* | Bugfix library/http/http.tcl for connection request header - ↵ | kjnash | 2022-10-10 | 1 | -7/+30 |
| | | | | tcllib/websocket ticket [d01de3281f]. Revise header order in 3 tests. | ||||
* | Merge 8.7 | kjnash | 2022-09-15 | 1 | -4/+4 |
|\ | |||||
| * | Merge 8.6 | jan.nijtmans | 2022-09-12 | 1 | -4/+4 |
| |\ | |||||
* | | | Minor bugfixes and refactoring of new code. Handle more errors in ↵ | kjnash | 2022-09-15 | 1 | -89/+111 |
| | | | | | | | | | | | | OpenSocket. Rename some keys of dict returned by ::http::responseInfo, and add more keys. Improve error reporting from ::http::OpenSocket and ::http::socket, especially when using threads. Adapt http(n) to emphasize using http::* commands rather than peeking at internal state array. | ||||
* | | | In namespace ::http, add new commands postError, responseInfo. Rename (the ↵ | kjnash | 2022-09-13 | 1 | -32/+128 |
| | | | | | | | | | | | | unreleased public API) reason to reasonPhrase. Rename private commands make-transformation-chunked to MakeTransformationChunked, getTextLine to GetTextLine. Rename mapReply to quoteString (and reverse the aliasing). Update namespace exports. Conventional use of fully-qualified command names. Initialise some members of state array. | ||||
* | | | Add new commands http::requestLine, requestHeaders, requestHeaderValue. Add ↵ | kjnash | 2022-09-12 | 1 | -12/+41 |
| | | | | | | | | | | | | aliases http::responseBody -> http::data, responseLine -> code, responseCode -> ncode, responseHeaders -> meta, responseHeaderValue -> metaValue. | ||||
* | | | Record HTTP request line and request headers for debugging purposes. | kjnash | 2022-09-12 | 1 | -15/+46 |
| | | | |||||
* | | | Fix bug [3610253] - apply the patch supplied with the ticket, and add a ↵ | kjnash | 2022-09-11 | 1 | -1/+9 |
| | | | | | | | | | | | | test. REVIEW REQUESTED! Also fix -zip 0 so it sends "Accept-Encoding: identity". | ||||
* | | | Fix bug [a13b9d0ce1] on HTTP compression: remove "compress", amend "deflate". | kjnash | 2022-09-11 | 1 | -6/+56 |
| | | | |||||
* | | | Add option to detect XML files and their encoding when the server supplies ↵ | kjnash | 2022-09-10 | 1 | -1/+83 |
| | | | | | | | | | | | | no content-type. Fix for bugs [2998307] and [3165071]. | ||||
* | | | Fix bug [338d979f5b] - default content-type is application/octet-stream | kjnash | 2022-09-09 | 1 | -1/+1 |
| | | | |||||
* | | | Add missing "else" clauses to "if" commands in http::Event. | kjnash | 2022-09-09 | 1 | -1/+31 |
| | | | |||||
* | | | Fix bug [2927221] - revised http::meta, new http::metaValue, header names ↵ | kjnash | 2022-09-09 | 1 | -3/+38 |
| | | | | | | | | | | | | are case-insensitive so convert to lower case. | ||||
* | | | Fix bug [2841176]. Evaluate all callbacks (and urlTypes commands) in global ↵ | kjnash | 2022-09-08 | 1 | -7/+7 |
| | | | | | | | | | | | | namespace. | ||||
* | | | Add command http::reason to return the recommended reason phrase for a HTTP ↵ | kjnash | 2022-09-08 | 1 | -0/+93 |
|/ / | | | | | | | server status code (bug [1214322]). | ||||
* | | Bugfixes - treat a disappearing socket as eof; do not open a (second) socket ↵ | kjnash | 2022-09-08 | 1 | -24/+62 |
| | | | | | | | | for a request that is already queued; cancel idletasks when no longer needed. This commit passes all tests. | ||||
* | | (Still buggy.) Add the ::socket replacement ::http::socket and its ↵ | kjnash | 2022-09-06 | 1 | -7/+293 |
| | | | | | | | | dependencies as a workaround to bug 824251. Integrate with tls. Allow configuration -threadlevel for socket creation (package Thread may not be available and by default it is not used). Revise tests http-1.1, http-1.4, http-1.5 for new option -threadlevel. Run tests for each value of -threadlevel. | ||||
* | | Revise http::geturl to open its socket in an idletask coroutine. This is ↵ | kjnash | 2022-09-06 | 1 | -234/+661 |
| | | | | | | | | preparation for a workaround to bug 824251. Revise test http-4.15 because error message has changed. This commit passes all tests. | ||||
* | | Minor bugfixes, improvments to layout, comments, logging. | kjnash | 2022-09-06 | 1 | -19/+46 |
| | | |||||
* | | Refactor some variable, command and coroutine names. | kjnash | 2022-09-06 | 1 | -65/+61 |
| | | |||||
* | | Add explicit return to most commands. | kjnash | 2022-09-06 | 1 | -1/+29 |
| | | |||||
* | | Merge 8.6 | jan.nijtmans | 2022-06-20 | 2 | -67/+100 |
|\ \ | |/ | |||||
| * | bump http version to 2.9.8 | jan.nijtmans | 2022-06-20 | 2 | -2/+2 |
| | | |||||
| * | Minor bugfixes to library/http/http.tcl and tests/http.test | kjnash | 2022-06-15 | 1 | -16/+22 |
| | | |||||
| * | Fix Proposal for [55bf73b52b]: http reuses connections after 101 Switching ↵ | jan.nijtmans | 2022-06-14 | 1 | -61/+88 |
| | | | | | | | | Protocols. To be discussed | ||||
* | | Remove [https://core.tcl-lang.org/tcl/info/1fe8ca8d3eb87b65|Horrible Hack] ↵ | jan.nijtmans | 2022-05-13 | 1 | -12/+2 |
| | | | | | | | | | | to keep the old error message. Instead depend on [https://core.tcl-lang.org/tips/doc/trunk/tip/601.md|TIP #601] to let "encoding convertto" generate an exception. | ||||
* | | Merge 8.6 | jan.nijtmans | 2022-05-11 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Fix [6898f9cb71]: shiftjis is presumably misspelled in http 2.7.7. Also add ↵ | jan.nijtmans | 2022-05-11 | 1 | -1/+4 |
| | | | | | | | | more testcases for http::CharsetToEncoding, revealing one more bug | ||||
| * | Now we're on it, keep better track with state(host) and state(path). ↵ | jan.nijtmans | 2022-05-10 | 1 | -2/+10 |
| | | | | | | | | Backported from http 2.10 | ||||
* | | Merge 8.6 | jan.nijtmans | 2022-05-10 | 2 | -4/+55 |
|\ \ | |/ | |||||
| * | Fix the bug. Standardise and document protocol upgrades. | kjnash | 2022-05-10 | 2 | -4/+55 |
| | | |||||
* | | http: tolerant again invalid reply header "content-encoding: UTF-8". Ticket ↵ | oehhar | 2022-05-04 | 1 | -1/+5 |
|\ \ | |/ | | | | | [8eb64b1520] | ||||
| * | http: tolerant again invalid reply header "content-encoding: UTF-8". Ticket ↵ | oehhar | 2022-05-04 | 1 | -1/+5 |
| |\ | | | | | | | | | | [8eb64b1520] | ||||
| | * | RFE [eb64b1520] http: be tolerant against invalid content encoding header ↵ | oehhar | 2021-12-03 | 2 | -3/+7 |
| | | | | | | | | | | | | responses | ||||
* | | | Merge 8.6. http -> 2.10a2 | jan.nijtmans | 2022-04-04 | 2 | -4/+3 |
|\ \ \ | |/ / | |||||
| * | | Fix [e5ed1bb28b]: Issue if URL contains numeric IPv6 address. http -> 2.9.6 | jan.nijtmans | 2022-04-04 | 2 | -4/+3 |
| |/ | |||||
* | | Revise http version number from unusual 2.10.0a1 to conventional 2.10a1 | dgp | 2021-06-04 | 2 | -2/+2 |
| | | |||||
* | | Merge 8.6 | jan.nijtmans | 2020-09-30 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | (slightly) better error-message for invalid http -headers option. This works ↵ | jan.nijtmans | 2020-09-30 | 1 | -5/+3 |
| | | | | | | | | for plain 8.6 too |