Skip to content
Tcl Source Code Artifact [7928309dd0]
Login

Artifact [7928309dd0]

Artifact 7928309dd0b0d0bc1f044122d854da6e72ce4ded:

Ticket change [7928309dd0] - New ticket [759888ffffffffff|759888ffff] <i>http::geturl fails on URIs with username/password in them</i>. by dossy on 2003-06-24 15:40:40.
D 2003-06-24T15:40:40
J assignee hobbs
J cmimetype text/plain
J comment http::geturl\sthrows\san\serror\swhen\spresented\sa\sURI\sthat\s\nhas\sa\susername\sand/or\spassword\sembedded\sin\sthe\sURI.\s\s\nHere's\san\sexample:\n\n%\spackage\srequire\shttp\n2.4.2\n%\s::http::geturl\shttp://username:password@localhost/\nUnsupported\sURL:\shttp://username:password@localhost/\n\nWhat\sneeds\sto\sbe\sfixed\sis\shttp2.4/http.tcl,\slines\s290--\n296:\n\n\s\s\s\s290\s\s\s\s\s#\sValidate\sURL,\sdetermine\sthe\sserver\shost\sand\s\nport,\sand\scheck\sproxy\s\s\s\s\s\s\s\s\scase\n\s\s\s\s291\s\n\s\s\s\s292\s\s\s\s\sif\s{![regexp\s-nocase\s{^(([^:]*)://)?([^/:]+)(:\n([0-9]+))?(/.*)?$}\s$ur\s\s\s\s\s\s\s\sl\s\\\n\s\s\s\s293\s\s\s\s\s\s\s\s\sx\sprefix\sproto\shost\sy\sport\ssrvurl]}\s{\n\s\s\s\s294\s\s\s\s\sunset\s$token\n\s\s\s\s295\s\s\s\s\sreturn\s-code\serror\s"Unsupported\sURL:\s$url"\n\s\s\s\s296\s\s\s\s\s}\s\n\nI'm\sworking\son\swritting\sa\sbetter\sregexp\sto\shandle\sbetter\s\n(and\shopefully,\scomplete)\sURI\sparsing.\s\sI'll\sattach\sit\sas\sa\s\npatch\sas\ssoon\sas\sI\sget\sit\sworking\sand\stested,\sunless\s\nsomeone\sbeats\sme\sto\sit.\n\n--\sDossy\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter dossy
J subsystem 29.\shttp\sPackage
J title http::geturl\sfails\son\sURIs\swith\susername/password\sin\sthem
J type Bug
K 759888ffffffffffffffffffffffffffffffffff
U dossy
Z 5b48b1f23b003abfc5153a90243b465e