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
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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) - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "29. http Package"
- title changed to: "Provide PUT and DELETE support for http package"
- type changed to: "Patch"