|
2020-11-16
| ||
| 14:15 | • Closed ticket [4f511270af]: http documentation: -query data may be any data ... artifact: b914b49cc9 user: oehhar | |
| 14:14 | Ticket [4f511270af7]: http documentation: -query data may be any data check-in: bcf3fead4f user: oehhar tags: oehhar-documentation-tickets | |
|
2020-09-02
| ||
| 16:06 | • Ticket [4f511270af] http documentation: -query data may be any data status s... artifact: 93ac3e9c83 user: oehhar | |
|
2020-08-28
| ||
| 14:20 | • New ticket [4f511270af]. artifact: b72a5a6b6b user: oehhar | |
http documentation: -query data may be any data
Closed / Fixed4f511270af7eb2bf02e4bf5db477f243eec9c69dCreated 6 years agoUpdated 6 years ago
Descriptionwiki2020-08-28 14:20:57
The http::geturl command option "-query" has the following description:
-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.
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:
http::geturl $URL -query $JPegPictureData -type image/jpeg
AFAIK this works well with the http package.
In addition, the subject encoding/charset is not addressed.
A proposed alternate wording would be:
-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.
Thank you, Harald
oehhar Ticket [4f511270af]: 3 changes
[History diff]2020-09-02 16:06:05
oehharwiki2020-11-16 14:15:34
Committed by commit [bcf3fead4f].
Log in (anonymous is fine) to add a comment.