Skip to content
Tcl Source Code Artifact [b72a5a6b6b]
Login

Artifact [b72a5a6b6b]

Artifact b72a5a6b6b7b4d72b940fc10bbce3be3776d928ccfa18ae06f192c14114e4fb6:

Ticket change [b72a5a6b6b] - New ticket [4f511270af7eb2bf|4f511270af] <i>http documentation: -query data may be any data</i>. by oehhar on 2020-08-28 14:20:57.
D 2020-08-28T14:20:57.302
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\shttp::geturl\scommand\soption\s"-query"\shas\sthe\sfollowing\sdescription:\r\n\r\n<verbatim>\r\n-query\squery\r\n\s\s\s\sThis\sflag\scauses\s::http::geturl\sto\sdo\sa\sPOST\srequest\sthat\spasses\sthe\squery\sto\sthe\sserver.\r\n\s\s\s\sThe\squery\smust\sbe\san\sx-url-encoding\sformatted\squery.\r\n\s\s\s\sThe\s::http::formatQuery\sprocedure\scan\sbe\sused\sto\sdo\sthe\sformatting.\s\r\n</verbatim>\r\n\r\nIMHO\sthe\squery\sdata\smay\sbe\sarbitrary\sdata.\sOnly\sif\sthe\s-type\sparameter\shas\sthe\sdefault\svalue\s"application/x-www-form-urlencoded",\sit\sis\srequired\sto\sbe\sencoded\sas\s"x-url-encoding\sformatted".\r\n\r\nIf\sone\swants\sto\ssend\sfor\sexample\sbinary\spicture\sdata,\sone\smay\suse:\r\n\r\n<verbatim>\r\nhttp::geturl\s$URL\s-query\s$JPegPictureData\s-type\simage/jpeg\r\n</verbatim>\r\n\r\nAFAIK\sthis\sworks\swell\swith\sthe\shttp\spackage.\r\n\r\nA\sproposed\salternate\swording\swould\sbe:\r\n\r\n<verbatim>\r\n-query\squery\r\n\s\s\s\sThis\sflag\scauses\s::http::geturl\sto\sdo\sa\sPOST\srequest\sthat\spasses\sthe\squery\sto\sthe\sserver.\r\n\s\s\s\sThe\scontent\sof\squery\sdepends\son\sthe\sused\smime-type\s(see\s-type\soption).\r\n\r\n\s\s\s\sFor\shtml\sforms,\sit\sis\s\san\sx-url-encoding\sformatted\squery.\r\n\s\s\s\sThe\s::http::formatQuery\sprocedure\scan\sbe\sused\sto\sdo\sthe\sformatting.\s\r\n</verbatim>\r\n\r\nThank\syou,\r\nHarald
J foundin 8.6.10
J is_private 0
J login oehhar
J priority 5\sMedium
J private_contact 0f366eb3e9e2fcab52b8ebacd197db9047186a5f
J resolution None
J severity Cosmetic
J status Open
J submitter oehhar
J subsystem 29.\shttp\sPackage
J title http\sdocumentation:\s-query\sdata\smay\sbe\sany\sdata
J type Bug
K 4f511270af7eb2bf02e4bf5db477f243eec9c69d
U oehhar
Z 307264405fa5cea7eb414fb2de4567fb