summaryrefslogtreecommitdiffstats
path: root/library/http
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded backslashjan.nijtmans2023-03-191-3/+3
|
* one too much "-profile tcl8"jan.nijtmans2023-03-181-1/+1
|
* Make http package use "-profile tcl8", irrespective of the default profile ↵jan.nijtmans2023-03-181-3/+24
| | | | in Tcl, until decided differently
* http 2.10a4 -> 2.10b1, for upcoming releasejan.nijtmans2022-11-162-2/+2
|
* Bugfix to socketPhQueue. Add some Log commands for debugging.kjnash2022-11-091-2/+9
|
* library/http/http.tcl - bugfix OpenSocket to replay any requests in the ↵kjnash2022-11-071-1/+14
| | | | socketPhQueue placeholder queue, if the socket was not created.
* library/http/http.tcl - define http::socketProxyId and use it to record the ↵kjnash2022-11-071-2/+45
| | | | proxy (if any) used by each persistent socket. Minor fix to socketPhQueue.
* library/http/http.tcl - in http::SecureProxyConnect, bugfix state(proxyUsed) ↵kjnash2022-11-071-3/+13
| | | | so the correct value SecureProxyFailed or SecureProxy is returned.
* library/http/http.tcl - in http::SecureProxyConnect and its caller, bugfix ↵kjnash2022-11-071-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 ↵kjnash2022-11-071-1/+1
| | | | 8.6.
* Fix bug 1173760 (proxy server for https). Add http::config options ↵kjnash2022-10-251-33/+302
| | | | -proxynot, -proxyauth.
* Bugfix library/http/http.tcl for connection request header - ↵kjnash2022-10-101-7/+30
| | | | tcllib/websocket ticket [d01de3281f]. Revise header order in 3 tests.
* Merge 8.7kjnash2022-09-151-4/+4
|\
| * Merge 8.6jan.nijtmans2022-09-121-4/+4
| |\
* | | Minor bugfixes and refactoring of new code. Handle more errors in ↵kjnash2022-09-151-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 ↵kjnash2022-09-131-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 ↵kjnash2022-09-121-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.kjnash2022-09-121-15/+46
| | |
* | | Fix bug [3610253] - apply the patch supplied with the ticket, and add a ↵kjnash2022-09-111-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".kjnash2022-09-111-6/+56
| | |
* | | Add option to detect XML files and their encoding when the server supplies ↵kjnash2022-09-101-1/+83
| | | | | | | | | | | | no content-type. Fix for bugs [2998307] and [3165071].
* | | Fix bug [338d979f5b] - default content-type is application/octet-streamkjnash2022-09-091-1/+1
| | |
* | | Add missing "else" clauses to "if" commands in http::Event.kjnash2022-09-091-1/+31
| | |
* | | Fix bug [2927221] - revised http::meta, new http::metaValue, header names ↵kjnash2022-09-091-3/+38
| | | | | | | | | | | | are case-insensitive so convert to lower case.
* | | Fix bug [2841176]. Evaluate all callbacks (and urlTypes commands) in global ↵kjnash2022-09-081-7/+7
| | | | | | | | | | | | namespace.
* | | Add command http::reason to return the recommended reason phrase for a HTTP ↵kjnash2022-09-081-0/+93
|/ / | | | | | | server status code (bug [1214322]).
* | Bugfixes - treat a disappearing socket as eof; do not open a (second) socket ↵kjnash2022-09-081-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 ↵kjnash2022-09-061-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 ↵kjnash2022-09-061-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.kjnash2022-09-061-19/+46
| |
* | Refactor some variable, command and coroutine names.kjnash2022-09-061-65/+61
| |
* | Add explicit return to most commands.kjnash2022-09-061-1/+29
| |
* | Merge 8.6jan.nijtmans2022-06-202-67/+100
|\ \ | |/
| * bump http version to 2.9.8jan.nijtmans2022-06-202-2/+2
| |
| * Minor bugfixes to library/http/http.tcl and tests/http.testkjnash2022-06-151-16/+22
| |
| * Fix Proposal for [55bf73b52b]: http reuses connections after 101 Switching ↵jan.nijtmans2022-06-141-61/+88
| | | | | | | | Protocols. To be discussed
* | Remove [https://core.tcl-lang.org/tcl/info/1fe8ca8d3eb87b65|Horrible Hack] ↵jan.nijtmans2022-05-131-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.6jan.nijtmans2022-05-111-1/+4
|\ \ | |/
| * Fix [6898f9cb71]: shiftjis is presumably misspelled in http 2.7.7. Also add ↵jan.nijtmans2022-05-111-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.nijtmans2022-05-101-2/+10
| | | | | | | | Backported from http 2.10
* | Merge 8.6jan.nijtmans2022-05-102-4/+55
|\ \ | |/
| * Fix the bug. Standardise and document protocol upgrades.kjnash2022-05-102-4/+55
| |
* | http: tolerant again invalid reply header "content-encoding: UTF-8". Ticket ↵oehhar2022-05-041-1/+5
|\ \ | |/ | | | | [8eb64b1520]
| * http: tolerant again invalid reply header "content-encoding: UTF-8". Ticket ↵oehhar2022-05-041-1/+5
| |\ | | | | | | | | | [8eb64b1520]
| | * RFE [eb64b1520] http: be tolerant against invalid content encoding header ↵oehhar2021-12-032-3/+7
| | | | | | | | | | | | responses
* | | Merge 8.6. http -> 2.10a2jan.nijtmans2022-04-042-4/+3
|\ \ \ | |/ /
| * | Fix [e5ed1bb28b]: Issue if URL contains numeric IPv6 address. http -> 2.9.6jan.nijtmans2022-04-042-4/+3
| |/
* | Revise http version number from unusual 2.10.0a1 to conventional 2.10a1dgp2021-06-042-2/+2
| |
* | Merge 8.6jan.nijtmans2020-09-301-3/+2
|\ \ | |/
| * (slightly) better error-message for invalid http -headers option. This works ↵jan.nijtmans2020-09-301-5/+3
| | | | | | | | for plain 8.6 too