From: Vlad S. <vl...@cr...> - 2005-03-04 20:02:23
|
With headers you can pretty much use ns_set set h [ns_conn outputheaders] ns_set truncate $h ns_set put $h Content-Type text/html ... But there is not way to set status without using one of the ns_return... command. It would be nice to use ns_conn status for returning current status and ns_conn status newstatus for setting new status directly Zoran Vasiljevic wrote: > Hi! > > I'm going thru the module we wrote some times ago which augment > core server commands, and I spotted two of them: > > ns_conn discardcontent > ns_conn headers status ?type? ?length?" > > The first one discards the entire content of the request. > The second one sets required output headers w/o sending > any content to the remote peer. > > Question: is there anything in the server as-is which would > allow me to do this now? > > Cheer's > Zoran > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |