Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7928309dd0b0d0bc1f044122d854da6e72ce4ded
Ticket: 759888ffffffffffffffffffffffffffffffffff
http::geturl fails on URIs with username/password in them
User & Date: dossy on 2003-06-24 15:40:40
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    http::geturl throws an error when presented a URI that 
    has a username and/or password embedded in the URI.  
    Here's an example:
    
    % package require http
    2.4.2
    % ::http::geturl http://username:password@localhost/
    Unsupported URL: http://username:password@localhost/
    
    What needs to be fixed is http2.4/http.tcl, lines 290--
    296:
    
        290     # Validate URL, determine the server host and 
    port, and check proxy         case
        291 
        292     if {![regexp -nocase {^(([^:]*)://)?([^/:]+)(:
    ([0-9]+))?(/.*)?$} $ur        l \
        293         x prefix proto host y port srvurl]} {
        294     unset $token
        295     return -code error "Unsupported URL: $url"
        296     } 
    
    I'm working on writting a better regexp to handle better 
    (and hopefully, complete) URI parsing.  I'll attach it as a 
    patch as soon as I get it working and tested, unless 
    someone beats me to it.
    
    -- Dossy
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dossy"
  9. subsystem changed to: "29. http Package"
  10. title changed to:
    http::geturl fails on URIs with username/password in them
    
  11. type changed to: "Bug"