Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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
    
  5. foundin changed to: "8.6.10"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Cosmetic"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "29. http Package"
  15. title changed to: "http documentation: -query data may be any data"
  16. type changed to: "Bug"