<i>The http::geturl -keepalive option does not work as described in the man page.</i> status still Open with 3 other changes
by
.
D 2020-07-24T07:46:38.627
J icomment Which\sURL\sare\syou\sloading?\s\sCan\syou\ssupply\sthe\scontents\sof\sthe\shttp\stoken?\r\n\r\ne.g.\r\n\r\npackage\srequire\shttp\r\npackage\srequire\stls\r\nhttp::register\shttps\s443\s[list\s::tls::socket\s-tls1\s1]\r\nset\surl\shttps://wiki.tcl-lang.org/\r\nset\stoken\s[::http::geturl\s$url\s-keepalive\s1]\r\nupvar\s0\s$token\sstate\r\nset\sstate(body)\s<elided>\r\nparray\sstate\r\n\r\nHere's\sthe\sresult\sfor\sa\ssecond\scall\sto\sthe\sserver,\sshowing\sthat\sthe\sconnection\sis\sbeing\sreused,\sand\sthe\sserver\sdid\snot\ssend\sa\s"Connection:\sclose"\sheader:\r\n\r\nstate(-binary)\s\s\s\s\s\s\s\s\s=\sfalse\r\nstate(-blocksize)\s\s\s\s\s\s=\s8192\r\nstate(-headers)\s\s\s\s\s\s\s\s=\s\r\nstate(-keepalive)\s\s\s\s\s\s=\s1\r\nstate(-pipeline)\s\s\s\s\s\s\s=\s1\r\nstate(-protocol)\s\s\s\s\s\s\s=\s1.1\r\nstate(-queryblocksize)\s=\s8192\r\nstate(-queryprogress)\s\s=\s\r\nstate(-strict)\s\s\s\s\s\s\s\s\s=\s1\r\nstate(-timeout)\s\s\s\s\s\s\s\s=\s0\r\nstate(-type)\s\s\s\s\s\s\s\s\s\s\s=\sapplication/x-www-form-urlencoded\r\nstate(-validate)\s\s\s\s\s\s\s=\s0\r\nstate(accept-types)\s\s\s\s=\s*/*\r\nstate(binary)\s\s\s\s\s\s\s\s\s\s=\s0\r\nstate(body)\s\s\s\s\s\s\s\s\s\s\s\s=\s<elided>\r\nstate(charset)\s\s\s\s\s\s\s\s\s=\siso8859-1\r\nstate(coding)\s\s\s\s\s\s\s\s\s\s=\sgzip\r\nstate(connection)\s\s\s\s\s\s=\skeep-alive\r\nstate(currentsize)\s\s\s\s\s=\s3280\r\nstate(http)\s\s\s\s\s\s\s\s\s\s\s\s=\sHTTP/1.1\s200\sOK\r\nstate(log_size)\s\s\s\s\s\s\s\s=\s3280\r\nstate(meta)\s\s\s\s\s\s\s\s\s\s\s\s=\sDate\s{Fri,\s24\sJul\s2020\s07:30:51\sGMT}\sContent-Type\stext/html\sTransfer-Encoding\schunked\sConnection\skeep-alive\sSet-Cookie\s{__cfduid=da9d277238fab40ec977986c76c416ffa1595575850;\sexpires=Sun,\s23-Aug-20\s07:30:50\sGMT;\spath=/;\sdomain=.tcl-lang.org;\sHttpOnly;\sSameSite=Lax}\sCache-Control\ss-maxage=31536000,max-age=0\sCF-Cache-Status\sDYNAMIC\scf-request-id\s0421546e480000ce8719872200000001\sExpect-CT\s{max-age=604800,\sreport-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"}\sServer\scloudflare\sCF-RAY\s5b7bf02a0dbcce87-LHR\sContent-Encoding\sgzip\r\nstate(method)\s\s\s\s\s\s\s\s\s\s=\sGET\r\nstate(querylength)\s\s\s\s\s=\s0\r\nstate(queryoffset)\s\s\s\s\s=\s0\r\nstate(reusing)\s\s\s\s\s\s\s\s\s=\s1\r\nstate(sock)\s\s\s\s\s\s\s\s\s\s\s\s=\ssock1955e80\r\nstate(socketinfo)\s\s\s\s\s\s=\swiki.tcl-lang.org:443\r\nstate(state)\s\s\s\s\s\s\s\s\s\s\s=\scomplete\r\nstate(status)\s\s\s\s\s\s\s\s\s\s=\sok\r\nstate(tmpConnArgs)\s\s\s\s\s=\shttps\s{}\s/\r\nstate(tmpOpenCmd)\s\s\s\s\s\s=\s::tls::socket\s-tls1\s1\s-async\swiki.tcl-lang.org\s443\r\nstate(tmpState)\s\s\s\s\s\s\s\s=\shttp\s{}\squerylength\s0\smethod\s{}\s-queryblocksize\s8192\sstate\screated\scharset\siso8859-1\stype\stext/html\s-binary\sfalse\s-pipeline\s1\surl\shttps://wiki.tcl-lang.org/\s-keepalive\s1\s-timeout\s0\ssocketinfo\swiki.tcl-lang.org:443\squeryoffset\s0\sbinary\s0\s-strict\s1\stotalsize\s0\s-validate\s0\s-protocol\s1.1\sconnection\s{}\s-queryprogress\s{}\s-headers\s{}\saccept-types\s*/*\s-blocksize\s8192\scoding\s{}\sstatus\s{}\sbody\s{}\scurrentsize\s0\smeta\s{}\s-type\sapplication/x-www-form-urlencoded\r\nstate(totalsize)\s\s\s\s\s\s\s=\s0\r\nstate(transfer)\s\s\s\s\s\s\s\s=\schunked\r\nstate(transfer_final)\s\s=\s\r\nstate(type)\s\s\s\s\s\s\s\s\s\s\s\s=\stext/html\r\nstate(url)\s\s\s\s\s\s\s\s\s\s\s\s\s=\shttps://wiki.tcl-lang.org/
J login kjnash
J mimetype text/plain
K cb0373bb337d54ddcb769b0a847897bda4b01779
U kjnash
Z 7704170de21fea1465a992fda1897fdb