Tcl Library Source Code

View Ticket
Login
Ticket UUID: 991959
Title: command to send headers
Type: RFE Version: None
Submitter: davidw Created on: 2004-07-15 22:17:42
Subsystem: ncgi Assigned To: welch
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-11-21 08:53:31
Resolution: By Design Closed By: serhiy.storchaka
    Closed on: 2026-11-21 08:53:30
Description:
In CGI scripts with ncgi you send the headers via a
regular old puts.  This works ok for the moment, but
it's an obstacle to creating a compatibility layer for
systems such as Rivet or tclhttpd.  It would be best if
all 'special' goings-on were handled by ncgi commands
that could be overridden to create a compatibility layer.

Something along the lines of

ncgi::headers text/html

is what I'm thinking of.
User Comments: serhiy.storchaka added on 2026-11-21 08:53:31:

ncgi::header already does this; it was there ([35934da2af]) before this ticket. ncgi::redirect uses it.


andreas_kupries added on 2004-08-25 01:42:21:
Logged In: YES 
user_id=75003

Brent, comments ?