教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp  >  正文 ASP AddHeader 方法实例教程

ASP AddHeader 方法实例教程

发布时间:2016-10-07   编辑:jiaochengji.com
教程集为您提供ASP AddHeader 方法实例教程等资源,欢迎您收藏本站,我们将为您提供最新的ASP AddHeader 方法实例教程资源

ASP AddHeader 方法实例教程

该AddHeader方法增加了一个新的HTTP标头和价值的HTTP响应。

注意:一旦ASP AddHeader,它不能被删除。

注:在IIS 4.0中你必须调用此方法之前,任何被输出到浏览器。在IIS 5.0中,您可以致电AddHeader方法在任何一点的脚本,只要它之前的任何要求Response.Flush方法。

语法

<pre>response.AddHeader name,value</pre> <pre><table class="ex" cellspacing="0" cellpadding="3" width="100%" border="1"><tbody><tr><th valign="top" align="left" width="20%">Parameter</th><th valign="top" align="left" width="80%">Description</th></tr><tr><td valign="top">name</td><td valign="top">Required. The name of the new header variable (cannot contain underscores)</td></tr><tr><td valign="top">value</td><td valign="top">Required. The initial value of the new header variable</td></tr></tbody></table></pre> <pre>看个实例.</pre> <pre><pre><%Response.AddHeader "WARNING","Error message text"%></pre> </pre> <pre>www.jiaochengji.com</pre>

您可能感兴趣的文章:
ASP AddHeader 方法实例教程
ASP AddHeader
asp入门教程:ASP Request 简单介绍
ASP IsClientConnected 属性使用方法
asp fso入门教程:ASP Copy 方法实例教程
ASP 中文教程(一)--asp 简介、安装、以及如何显示中文
ASP Clear 方法使用实例教程
如何让asp 以javascript语法运行
asp教程:ASP变量
ASP AppendToLog实例教程

[关闭]
~ ~