Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: dc335ba185f58071ed1decc1a7872a9a9d0e3e7c
Ticket: 14e3c258d9c78725979d688d0e68d8b5627703d6
Tcl's http manpage does not mention other content types can be used with -query
User & Date: anonymous 2014-01-07 15:23:27
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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.
    
  5. foundin changed to: "8.5"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "25d421ae641f3928f4103e2d91c6f2e7d287232d"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "29. http Package"
  15. title changed to:
    Tcl's http manpage does not mention other content types can be used with -query
    
  16. type changed to: "Bug"