Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2022-05-30
16:25 • Closed ticket [14e3c258d9]: Tcl's http manpage does not mention other conten... artifact: 5c35f67ded user: kjnash
2022-05-13
03:00 • Pending ticket [14e3c258d9]. artifact: cd482a3b79 user: kjnash
2022-05-12
01:39 • Ticket [14e3c258d9]: 3 changes artifact: 2b87adce1c user: kjnash
2014-01-07
15:23 • New ticket [14e3c258d9]. artifact: dc335ba185 user: anonymous

Tcl's http manpage does not mention other content types can be used with -query

Closed / Fixed14e3c258d9c78725979d688d0e68d8b5627703d6Created 13 years agoUpdated 5 years ago
Descriptionplain2014-01-07 15:23:27
The documentation for the -query option specified the following:

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.

However this does not make sense of -type is also set. Empirical evidence seems to suggest that if -type is set, then -query can be in other types than x-url-encoding can be given to -query, and will be past as-is. This can be important e.g. when posting REST queries formatted with JSON, such as with the Google URL shortener API: https://developers.google.com/url-shortener/v1/getting_started#shorten

It's a small fix, but marked important as it's not obvious this can be used to do this core functionality.
kjnashwiki2022-05-12 01:39:50

Documentation http(n) changed to add this information. See commit [00c7068494f2c3b7].

kjnash Pending ticket [14e3c258d9]. [History diff]2022-05-13 03:00:45
kjnash Closed ticket [14e3c258d9]. [History diff]2022-05-30 16:25:05
Log in (anonymous is fine) to add a comment.