Overview
| Artifact ID: | b72a5a6b6b7b4d72b940fc10bbce3be3776d928ccfa18ae06f192c14114e4fb6 |
|---|---|
| Ticket: | 4f511270af7eb2bf02e4bf5db477f243eec9c69d
http documentation: -query data may be any data |
| User & Date: | oehhar on 2020-08-28 14:20:57 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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. 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 changed to: "8.6.10"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Cosmetic"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "29. http Package"
- title changed to: "http documentation: -query data may be any data"
- type changed to: "Bug"