Overview
| Artifact ID: | 1fbfae1b447dee3844cd5eb8e35f547059ca2aeaec30704849688dd41487845e |
|---|---|
| Ticket: | cb0373bb337d54ddcb769b0a847897bda4b01779
The http::geturl -keepalive option does not work as described in the man page. |
| User & Date: | kjnash on 2020-07-24 07:46:38 |
Changes
- icomment:
Which URL are you loading? Can you supply the contents of the http token? e.g. package require http package require tls http::register https 443 [list ::tls::socket -tls1 1] set url https://wiki.tcl-lang.org/ set token [::http::geturl $url -keepalive 1] upvar 0 $token state set state(body) <elided> parray state Here's the result for a second call to the server, showing that the connection is being reused, and the server did not send a "Connection: close" header: state(-binary) = false state(-blocksize) = 8192 state(-headers) = state(-keepalive) = 1 state(-pipeline) = 1 state(-protocol) = 1.1 state(-queryblocksize) = 8192 state(-queryprogress) = state(-strict) = 1 state(-timeout) = 0 state(-type) = application/x-www-form-urlencoded state(-validate) = 0 state(accept-types) = */* state(binary) = 0 state(body) = <elided> state(charset) = iso8859-1 state(coding) = gzip state(connection) = keep-alive state(currentsize) = 3280 state(http) = HTTP/1.1 200 OK state(log_size) = 3280 state(meta) = Date {Fri, 24 Jul 2020 07:30:51 GMT} Content-Type text/html Transfer-Encoding chunked Connection keep-alive Set-Cookie {__cfduid=da9d277238fab40ec977986c76c416ffa1595575850; expires=Sun, 23-Aug-20 07:30:50 GMT; path=/; domain=.tcl-lang.org; HttpOnly; SameSite=Lax} Cache-Control s-maxage=31536000,max-age=0 CF-Cache-Status DYNAMIC cf-request-id 0421546e480000ce8719872200000001 Expect-CT {max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"} Server cloudflare CF-RAY 5b7bf02a0dbcce87-LHR Content-Encoding gzip state(method) = GET state(querylength) = 0 state(queryoffset) = 0 state(reusing) = 1 state(sock) = sock1955e80 state(socketinfo) = wiki.tcl-lang.org:443 state(state) = complete state(status) = ok state(tmpConnArgs) = https {} / state(tmpOpenCmd) = ::tls::socket -tls1 1 -async wiki.tcl-lang.org 443 state(tmpState) = http {} querylength 0 method {} -queryblocksize 8192 state created charset iso8859-1 type text/html -binary false -pipeline 1 url https://wiki.tcl-lang.org/ -keepalive 1 -timeout 0 socketinfo wiki.tcl-lang.org:443 queryoffset 0 binary 0 -strict 1 totalsize 0 -validate 0 -protocol 1.1 connection {} -queryprogress {} -headers {} accept-types */* -blocksize 8192 coding {} status {} body {} currentsize 0 meta {} -type application/x-www-form-urlencoded state(totalsize) = 0 state(transfer) = chunked state(transfer_final) = state(type) = text/html state(url) = https://wiki.tcl-lang.org/ - login: "kjnash"
- mimetype: "text/plain"