I guess I should have been more specific...if you use ns_return, then it
will send the headers out for you (and when you are using ns_puts in
ADPs); but if you are using ns_write in tcl scripts, you will need to
send out headers. For example, OpenACS/ACS (version 3.2) uses a proc
called ReturnHeaders for this very reason. Here is the contents of the
proc (as an example):

proc ReturnHeaders {{content_type text/html}} {
    set all_the_headers "HTTP/1.0 200 OK
MIME-Version: 1.0
Content-Type: $content_type\n"
     util_WriteWithExtraOutputHeaders $all_the_headers
}

So, I guess if you are using ns_write in your tcl scripts, then try
sending headers explicitedly ...


--brett


Jerry Asher wrote:
>
> At 10:48 AM 8/23/01, you wrote:
> >Oh, I'm sorry.  Are the scripts supposed to send out their own HTTP headers
> >in the style of CGI output?  I assumed AOLserver would be sending out
> >default headers as it does with ADPs, and I would just need some content.
> >Assumption is the mother of all screw-ups I guess.
>
> You're right. AOLserver will send out the headers for you.  (When you need
> to, there are API functions that will enable you to modify/add to those
> headers, but don't worry about it for now.)
>
> Jerry
>
> =====================================================
> Jerry Asher                       [EMAIL PROTECTED]
> 1678 Shattuck Avenue Suite 161    Tel: (510) 549-2980
> Berkeley, CA 94709                Fax: (877) 311-8688

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to