Artifacts Associated With Ticket 4f511270af7eb2bf
Ticket change [b72a5a6b6b] (rid 185740) by oehhar on 2020-08-28 14:20:57:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The http::geturl command option "-query" has the following description: <verbatim> -query query This flag causes ::http::geturl to do a POST request that passes the query to the server. The query must be an x-url-encoding formatted query. The ::http::formatQuery procedure can be used to do the formatting. </verbatim> IMHO the query data may be arbitrary data. Only if the -type parameter has the default value "application/x-www-form-urlencoded", it is required to be encoded as "x-url-encoding formatted". If one wants to send for example binary picture data, one may use: <verbatim> http::geturl $URL -query $JPegPictureData -type image/jpeg </verbatim> AFAIK this works well with the http package. A proposed alternate wording would be: <verbatim> -query query This flag causes ::http::geturl to do a POST request that passes the query to the server. The content of query depends on the used mime-type (see -type option). For html forms, it is an x-url-encoding formatted query. The ::http::formatQuery procedure can be used to do the formatting. </verbatim> Thank you, Harald - foundin initialized to: "8.6.10"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Cosmetic"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "29. http Package"
- title initialized to: "http documentation: -query data may be any data"
- type initialized to: "Bug"
Ticket change [93ac3e9c83] (rid 185996) by oehhar on 2020-09-02 16:06:05:
- comment changed to:
The http::geturl command option "-query" has the following description: <verbatim> -query query This flag causes ::http::geturl to do a POST request that passes the query to the server. The query must be an x-url-encoding formatted query. The ::http::formatQuery procedure can be used to do the formatting. </verbatim> IMHO the query data may be arbitrary data. Only if the -type parameter has the default value "application/x-www-form-urlencoded", it is required to be encoded as "x-url-encoding formatted". If one wants to send for example binary picture data, one may use: <verbatim> http::geturl $URL -query $JPegPictureData -type image/jpeg </verbatim> AFAIK this works well with the http package. In addition, the subject encoding/charset is not addressed. A proposed alternate wording would be: <verbatim> -query query This flag causes ::http::geturl to do a POST request that passes the _query_ as payload verbatim to the server. The content format (and encoding) of _query_ is announced by the header field 'content-type' set by the -type option. _query_ is an x-url-encoding formatted query, if used for html forms. The ::http::formatQuery procedure may be used to do the formatting. </verbatim> Thank you, Harald - login: "oehhar"
- mimetype: "text/plain"
- comment changed to:
Ticket change [b914b49cc9] (rid 188603) by oehhar on 2020-11-16 14:15:34:
- closedate changed to: "2459170.09415214"
- closer changed to: "oehhar"
- icomment: "Committed by commit [bcf3fead4f]."
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"