Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b06529c4da04752f6a81921e2b62738c623a3967
Ticket: 1358369fffffffffffffffffffffffffffffffff
geturl http://192.168.0.2/test/test.php?userid=sip:[email protected]
User & Date: dkf on 2005-11-17 18:22:57
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    On the other hand, handling URLs more robustly is a good
    thing anyway. Tests indicate that the RE:
    {(?x)
       ^
       (?: (\w+) : )# <protocol>
       (?: //
          (?: ([^@/:#?]+) (?: : ([^@/#?]+) )? @ )?# <user> <pass>
          ( [^/:#?]+ )# <host>
          (?: : (\d+) )?# <port>
       )?
       ( / [^#]* )?# <path> (including query)
       (?: \# (.*) )?# <fragment>
       $
    }
    
    offers both robust parsing (including of a number of rarely
    used parts of the URL spec) and yet is also fairly easy to
    understand. It also doesn't capture bits that aren't
    interesting.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"