<doc>
	<legacy_id></legacy_id>
	<name>put header</name>
	<type>command</type>

	<syntax>
		<example>put [ new ] header &lt;header&gt;</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Replaces or adds a CGI output header to the current list that is generated the first time any data is output to stdout.</summary>

	<examples>
<example><p>put url (&quot;binfile:&quot; &amp; tPathToMyImage) into tImageData</p><p>put header &quot;Content-Type: image/gif&quot;</p><p>put header &quot;Content-Length: &quot; &amp;&amp; the length of tImageData</p><p>put tImageData</p></example>
	</examples>

	<history>
		<introduced version="4.6.3">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
	</platforms>

	<classes>
		<server/>
	</classes>

	<security>
	</security>


	<classification>
		<category>Values  Properties</category>
		<category>Text and Data Processing</category>
	</classification>

	<references>
		<command tag="put text">put text Command</command>
		<command tag="put binary">put binary Command</command>
		<command tag="put markup">put markup Command</command>
		<command tag="put content">put content Command</command>
		<command tag="put">put Command</command>
		<keyword tag="after">after Keyword</keyword>
		<keyword tag="before">before Keyword</keyword>
	</references>

	<description>
	<overview>Use the <b>put content </b>command to replace or add a CGI output header to the current list that will be generated the first time any data is output to stdout.</overview>

		<parameters>
  <parameter>
    <name>string</name>
    <description>A string with the following form "header: value".</description>
  </parameter>		</parameters>

	<value></value>
	<comments>If new is not specified, any existing header of the same name has its value replaced by the action. If new is specified, or an existing header is not found, a new entry is made at the end of the header list.<p></p><p>After headers have been output, the put header variant has no further effect.</p><p></p><p>When headers get sent, if there is not a 'Content-Type' header in the list, the LiveCode Server automatically sends: Content-Type: text/html.</p></comments>
	</description>
</doc>