Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 007efe5a6068724f4a4d63ffe0dec390c1380670
Ticket: 420060ffffffffffffffffffffffffffffffffff
Add -address option to http::geturl
User & Date: hobbs on 2001-09-07 06:02:51
Changes

  1. closedate changed to: "2001-09-06T23:02:51"
  2. closer changed to: "hobbs"
  3. icomment:
    Logged In: YES 
    user_id=72656
    
    The problem is that with the new http::register, this 
    becomes very difficult to implement with an address option 
    instead of using the register.  You can just do:
    
    http::register 192http 80 [list ::socket -myaddr 192...]
    http::register 10http 80 [list ::socket -myaddr 10...]
    
    and so on.  Any geturl with http://... will use the first 
    system IP given, but 192http:// and 10http:// would use a 
    specific address.  Whereas you wanted:
       geturl -addr $myaddr $url
    you would now do:
       set addr 127.0.0.1
       register ${addr}http 80 [list ::socket -myaddr $addr]
       geturl $addr$url
    
    maybe not as elegant, but seems good enough to me.
    
    
  4. login: "hobbs"
  5. mimetype: "text/plain"
  6. resolution changed to: "Rejected"
  7. status changed to: "Closed"
  8. username: "hobbs"