Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c3d5144f859ad6efb90cbf335ef04f37442a3d08
Ticket: 862554ffffffffffffffffffffffffffffffffff
Provide PUT and DELETE support for http package
User & Date: nobody on 2003-12-18 22:14:38
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Currently, the http package in Tcl 8.4.4 only support 
    GET POST and HEAD method. It will be useful to provide 
    PUT and DELETE support. And the changes can be 
    trivial. A simple solution is to have a "-method" option 
    for http::geturl. Users can specify which HTTP method 
    to use. For example, 
    
    http::geturl http://abc.com/doc/1 -method DELETE
    
    will send an HTTP DELETE request out.
    
    The following are the changes made to make it work.
    The changes are all in http::geturl proc. The changes 
    are based on http 2.4.4
    
    261c262 (this is to change the options list)
    <           -validate -timeout -type}
    ---
    >           -validate -timeout -type -method}
    
    284a286
    >     set hasMethod [info exists state(-method)]
    
    404a407,410
    >     }
    >
    >     if {$hasMethod} {
    >     set how $state(-method)
    
  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: "nobody"
  9. subsystem changed to: "29. http Package"
  10. title changed to: "Provide PUT and DELETE support for http package"
  11. type changed to: "Patch"