Skip to content
Tcl Source Code Artifact [93ac3e9c83]
Login

Artifact [93ac3e9c83]

Artifact 93ac3e9c83cc61e19e0d91f0bc547f79f4d8087283b642a2e450766f78ea1131:

Ticket change [93ac3e9c83] - Ticket [4f511270af7eb2bf|4f511270af] <i>http documentation: -query data may be any data</i> status still Open with 3 other changes by oehhar on 2020-09-02 16:06:05.
D 2020-09-02T16:06:05.414
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\nIn\saddition,\sthe\ssubject\sencoding/charset\sis\snot\saddressed.\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\s_query_\sas\spayload\sverbatim\sto\sthe\sserver.\r\n\s\s\s\sThe\scontent\sformat\s(and\sencoding)\sof\s_query_\sis\sannounced\sby\sthe\sheader\sfield\s'content-type'\sset\sby\sthe\s-type\soption.\r\n\r\n\s\s\s\s_query_\sis\san\sx-url-encoding\sformatted\squery,\sif\sused\sfor\shtml\sforms.\r\n\s\s\s\sThe\s::http::formatQuery\sprocedure\smay\sbe\sused\sto\sdo\sthe\sformatting.\s\r\n</verbatim>\r\n\r\nThank\syou,\r\nHarald
J login oehhar
J mimetype text/plain
K 4f511270af7eb2bf02e4bf5db477f243eec9c69d
U oehhar
Z d03b74cc56b9c4174841d7b78ec1ea7d