Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d7e8110ff3b9e630684db606b723b47cd3117bf
Ticket: 3eb2ec1449150778e3907e2e35e94ffe7339c780
Allow upper case scheme names in url
User & Date: oehhar on 2013-07-26 14:40:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    An upper case scheme name in an URL is not allowed:
    
    <verbatim>
    % http::geturl HTTP://www.elmicron.de/
    Unsupported URL type "HTTP"
    </verbatim>
    
    But following RFC 3986, URL Scheme names should be case insensitive:
    [http://tools.ietf.org/html/rfc3986]
    Chapter 3.1:
    <verbatim>
       Scheme names consist of a sequence of characters beginning with a
       letter and followed by any combination of letters, digits, plus
       ("+"), period ("."), or hyphen ("-").  Although schemes are case-
       insensitive, the canonical form is lowercase and documents that
       specify schemes must do so with lowercase letters.  An implementation
       should accept uppercase letters as equivalent to lowercase in scheme
       names (e.g., allow "HTTP" as well as "http") for the sake of
       robustness but should only produce lowercase scheme names for
       consistency.
    </verbatim>
    
    This could be cured by inserting:
    <verbatim>
    set proto [string tolower $proto]
    </verbatim>
    in line 504 of http.tcl.
    
    For me, this extension is relatively important, as I get URLs from RFID tags and there, the protocol is written in uppercase (which may be stored more efficiently).
    Of cause, I may do the conversion on my own, but as it is standard, we could also enhance the http package...
    
    Thank you,
    Harald
    
  5. foundin changed to: "trunk"
  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: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "29. http Package"
  15. title changed to: "Allow upper case scheme names in url"
  16. type changed to: "Bug"