Skip to content
Tcl Source Code Artifact [a343f96571]
Login

Artifact [a343f96571]

Artifact a343f965712933c788b3786427328bfaa887d8f7e27f2e12fbc0e88f9b89f198:

Ticket change [a343f96571] - Ticket [15e4bd83c28d0a81|15e4bd83c2] <i>http::geturl: Documentation discrepancy on -query {}</i> status still Open with 3 other changes by kjnash on 2022-05-10 19:29:25.
D 2022-05-10T19:29:25.401
J icomment Hi\sHarald,\r\n\r\nI've\sjust\slooked\sat\sRFC\s7230-3\sand\sI\scannot\ssee\sanything\sthat\sforbids\sa\sPOST\srequest\swith\sno\smessage\sbody.\s\sHowever,\sit\sis\san\sunusual\scase:\sdo\syou\suse\scustom\srequest\sheaders\sto\smodify\sthe\sstate\sof\sthe\sserver?\r\n\r\nThe\sbehaviour\sof\shttp::geturl\scould\sbe\schanged,\sbut\sthis\sis\sa\schange\sof\sAPI\sthat\smight\sbreak\ssome\sexisting\scode,\sand\swould\srequire\san\sincrease\sin\sthe\smajor\sversion\sof\sthe\shttp\spackage.\r\n\r\nFortunately,\syou\scan\suse\sthe\sexisting\shttp::geturl\sto\ssend\sPOST\swith\san\sempty\sbody\sby\susing\sthe\soptions\s"-method\sPOST\s-headers\s{Content-Length\s0}".\r\n\r\n<verbatim>\r\n\s\s\s\s-method\stype\r\n\s\s\s\s\s\s\s\sForce\sthe\sHTTP\srequest\smethod\sto\stype.\s::http::geturl\swill\sauto-select\sGET,\sPOST\sor\sHEAD\sbased\son\sother\soptions,\sbut\sthis\soption\senables\schoices\slike\sPUT\sand\sDELETE\sfor\swebdav\ssupport.\r\n</verbatim>\r\n\r\nI\swill\smodify\sthe\sman\spage\shttp(n)\sto\sstate\sthat\sthe\svalue\sfor\s-query\smust\sbe\snon-empty\sto\scause\sthe\sPOST\smethod.\r\n\r\nBest\swishes,\r\n\r\nKeith.
J login kjnash
J mimetype text/x-fossil-wiki
K 15e4bd83c28d0a817bf30e06071c90fe1e6db534
U kjnash
Z 961f4ea6af94a089622149ce84cb4d70