Skip to content
Tcl Source Code History Of Ticket 4f511270af7
Login

History Of Ticket 4f511270af7

Artifacts Associated With Ticket 4f511270af7

  1. Ticket change [b72a5a6b6b] (rid 185740) by oehhar on 2020-08-28 14:20:57:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Cosmetic"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to: "http documentation: -query data may be any data"
    16. type initialized to: "Bug"
  2. Ticket change [93ac3e9c83] (rid 185996) by oehhar on 2020-09-02 16:06:05:

    1. 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
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
  3. Ticket change [b914b49cc9] (rid 188603) by oehhar on 2020-11-16 14:15:34:

    1. closedate changed to: "2459170.09415214"
    2. closer changed to: "oehhar"
    3. icomment: "Committed by commit [bcf3fead4f]."
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "oehhar"