Hello, Ive tested ns_register_tcl with my installation and its working fine: In my index.adp: ns_register_tcl PUT /REST/ test/test.tcl
My test.tcl: ns_log Notice "Running TCL script users/edit" In log: [0;32m[24/May/2020:16:16:47][26138.7f62510c4700][-conn:***********:default:0:12-] [0m [0;39mNotice: Running TCL script users/edit [0m Check your logs if naviserver reads /tcl/http-handlers-init.tcl. Your path to scripts etc. Its something with your installation Cmpts.: Maksym Zinchenko On Sat, May 23, 2020 at 7:22 PM <i...@iurix.com> wrote: > Hi there, > In attempt to register PUT in my NS instalation ( ie. HTTP PUT method), I > added the following line, within /tcl/http-handlers-init.tcl library : > > ns_register_tcl -options {stream stricterror} -- PUT /REST/*.tcl > > I also try the simplest call: ns_register_tcl PUT /REST/*.tcl > > Then, within /REST/ directory, there's a TCL script edit.tclm and the > first line is a simple log call, for testing purposes. > > ns_log Notice "Running TCL script users/edit" > > However, it still returns "Method not allowed: > > Reference: > https://naviserver.sourceforge.io/n/naviserver/files/ns_register.html > > > Furthermore, I've tested another variation of ns_register, which works > just fine > > ns_register_proc PUT /REST/* ::my_proc > > What am I missing ? > > > Best wishes, > I > _______________________________________________ > naviserver-devel mailing list > naviserver-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/naviserver-devel >
_______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel