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

History Of Ticket 4e5007ea1b285527

Artifacts Associated With Ticket 4e5007ea1b285527

  1. Ticket change [da77134a81] (rid 141201) by oehhar on 2015-02-16 14:45:48:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The http::formatQuery command is documented as:
      <verbatim>
      http::formatQuery key value ?key value ...?
      </verbatim>
      
      The function is also usable as:
      <verbatim>
      http::formatQuery string
      </verbatim>
      which just does the %xx translation for string.
      
      For me (and Rolf via chat), this is a helpful use case.
      
      Could we make this offical and document this use case ?
      
      Thank you,
      Harald
      
    5. foundin initialized to: "8.6.3"
    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: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to: "Document use case: http::formatQuery key"
    16. type initialized to: "Bug"
  2. Ticket change [bf43f01fe6] (rid 154683) by gwlester on 2017-06-19 22:24:35:

    1. assignee changed to: "gwlester"
    2. icomment:
      Fixed in TIP 452 branch by having formatQuery raise an error if passed an odd number of arguments.
      
      Creating new ticket to request that ::http::quoteString be exposed that will just do the %XX translation for a string.
      
    3. login: "gwlester"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
    7. username: "gwlester"
  3. Ticket change [3b9a9ac3ab] (rid 154686) by dkf on 2017-06-19 22:30:17:

    1. icomment:
      I guess that we can review how we do the quoting once this hits a main branch. It's the sort of thing for which I did <tt>regsub -command</tt> after all.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  4. Ticket change [274745caf9] (rid 160335) by oehhar on 2018-01-19 13:36:59:

    1. icomment:
      I would really enjoy to legalize this use-case.
      
      Should I start a tip ?
      
      Thank you,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  5. Ticket change [371c27948e] (rid 200560) by kjnash on 2022-05-10 21:16:47:

    1. icomment:
      Hi Harald,
      
      Does the "new" command ::http::quoteString do what you need?  If so, this bug can be closed.
      
      Best wishes,
      
      Keith.
      
    2. login: "kjnash"
    3. mimetype: "text/plain"
  6. Ticket change [3f02f3bf30] (rid 200606) by oehhar on 2022-05-12 12:37:15:

    1. icomment:
      Thank you, Nash, for the message,
      first, I am amazed about all the patches this week, great.
      
      To answer the discrete question:
      I look to the msgcat code in [dcc2f0bb90d2ced6].
      
      http::quoteString is aliased on http::mapReply.
      
      The function is great and what is IMHO helpful.
      
      But mapReply starts with:
      
      <verbatim>
          if {$http(-urlencoding) ne ""} {
      </verbatim>
      
      so, the http array must exist to use it.
      So, IMHO, it can not be used as an utility function disconnected from a http request (what was my intention).
      
      As a side note, I am not sure what the "encoding convertto" following it does.
      If there is encoding envolved, I would do that after the percent encoding, not before, as an encoding applies to the percent encoded characters to.
      
      Just my two pence,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  7. Ticket change [e34fa4aed8] (rid 200610) by kjnash on 2022-05-12 13:36:03:

    1. icomment:
      Hi Harald,
      
      I'm not sure what your use case is.  How would this command be useful for msgcat?
      
      The array ::http::http is defined when package http is loaded: there is no need to make a HTTP request.  You can use http::mapReply without ever making a request.
      
      The "encoding convertto" is essential to produce a %-encoded string that corresponds to a sequence of bytes <i>in a specific character set</i>.  Normally we use the default utf-8, e.g.
      
      <verbatim>
      % package require http
      2.10a1
      % http::mapReply ©
      %C2%A9
      </verbatim>
      
      But if the recipient is expecting a different character set, the command can do that too:
      
      <verbatim>
      % http::config -urlencoding iso8859-1
      % http::mapReply ©
      %A9
      </verbatim>
      
      In HTTP applications there is no need to do encoding after the percent-encoding,  because the latter produces a string in a subset of ASCII that HTTP clients and servers are required by the RFCs to understand.
      
      Kind regards,
      
      Keith.
      
    2. login: "kjnash"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [a3b8680944] (rid 200611) by oehhar on 2022-05-12 16:12:30:

    1. icomment:
      Sorry, Nash, all ok.
      My Covid-limitted brain just did not get it and thought the other way around.
      Like that it is ok and helpful.
      
      Thank you for all the work and take care,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  9. Ticket change [181c3d7216] (rid 200618) by jan.nijtmans on 2022-05-13 08:57:59:

    1. icomment:
      Thanks, @kjnash, for taking all those tickets regarding the http package. Whenever you feel that the documentation is OK, just go ahead. I'm GTG.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  10. Ticket change [df5e0d9264] (rid 201359) by kjnash on 2022-05-30 16:25:57:

    1. closedate changed to: "2459730.18469302"
    2. closer changed to: "kjnash"
    3. login: "kjnash"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"