<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_headers</id>
	<title>Ns headers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_headers"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_headers&amp;action=history"/>
	<updated>2026-04-26T01:31:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_headers&amp;diff=5468&amp;oldid=prev</id>
		<title>Akhassin: New page: '''NAME'''  : ns_headers - Write the HTTP-required and any queued http headers to the current connection's socket.  '''SYNOPSIS'''  : '''ns_headers''' ''connId status ?type? ?length?''  ''...</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_headers&amp;diff=5468&amp;oldid=prev"/>
		<updated>2009-10-14T05:48:33Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;NAME&amp;#039;&amp;#039;&amp;#039;  : ns_headers - Write the HTTP-required and any queued http headers to the current connection&amp;#039;s socket.  &amp;#039;&amp;#039;&amp;#039;SYNOPSIS&amp;#039;&amp;#039;&amp;#039;  : &amp;#039;&amp;#039;&amp;#039;ns_headers&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;connId status ?type? ?length?&amp;#039;&amp;#039;  &amp;#039;&amp;#039;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_headers - Write the HTTP-required and any queued http headers to the current connection's socket.&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_headers''' ''connId status ?type? ?length?''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: This command writes immediately to the current connection's socket the standard HTTP response headers and any headers that have been queued with ns_conn outputheaders.  No more headers can be sent after this and the body content can be sent with [[ns_write]] or [[ns_writefp]].&lt;br /&gt;
&lt;br /&gt;
: Because this command allows for optional type and length parameters, the normally optional connId parameter is required (in AOLserver 4.5, connId is always available in the global variable conn (i.e. $::conn)).&lt;br /&gt;
&lt;br /&gt;
: See [[ns_return]] for details on the ''status'' and ''type'' parameters. ''length'' specifies what will be put into the Content-Length header.  If ''type'' or ''length'' is omitted, the corresponding header (Content-Type and Content-Length) will not be sent.  Content-Length is required to enable keep-alive.&lt;br /&gt;
&lt;br /&gt;
'''NOTES'''&lt;br /&gt;
: In NaviServer, this command doesn't immediately send the headers, it just queues them to be sent upon first ns_write.&lt;br /&gt;
&lt;br /&gt;
'''SEE ALSO'''&lt;br /&gt;
&lt;br /&gt;
: [[ns_startcontent]], [[ns_write]], [[ns_return]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category Documentation]] - [[Category Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>Akhassin</name></author>
		
	</entry>
</feed>