Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d07780f83bd0851a2f6c3a61f44d211c8517519a443819afb849af44cf59acf9
Ticket: 15e4bd83c28d0a817bf30e06071c90fe1e6db534
http::geturl: Documentation discrepancy on -query {}
User & Date: oehhar on 2021-10-04 16:32:16
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Sorry for the following detail:
    
    <verbatim>
    http::geturl $URL -query {}
    </verbatim>
    
    sends a get request and not a post request.
    
    The documentation of 8.6.11 is:
    [https://www.tcl-lang.org/man/tcl8.6/TclCmd/http.htm#M29]
    
    <verbatim>
    -query query
        This flag causes ::http::geturl to do a POST request...
    </verbatim>
    
    In this corner case, it does not.
    It sends a get request.
    
    I suppose, we can not change the behaviour.
    It might be beneficial to change the wording to say that an empty query sends a get request.
    
    Any comments welcome.
    
    Best regards,
    Harald
    
    Note: for my personal use, it would be handy to send a post request with empty payload.
    
  5. foundin changed to: "8.6"
  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::geturl: Documentation discrepancy on -query {}
    
  16. type changed to: "Bug"