令中国铁道出版社 7.2 Response对 7.2.2 Response的属性 代码 说 明 代码 说 明 100继续( Continue) 302发现( Found) 101切换协议( Switching Protocol)303查看其他( See other 200OK 304无修改( Not modified 201创建( Created) 305使用Prox( Use Proxy 202接受( Accepted) 306没有使用( Unused) 203无授权的信息( Non authoritative 307暂时转向( Temporary Redirect Information) 400不正确的要求 204没有网页内容( No Content) 401无授权( Unauthorized) 205重置网页内容( Reset Content) 402付费要求( Payment Required) 206部分网页内容( Partial Content) 403禁止( Forbidden) 300多重选择( Multiple Choices) 404没有发现( Not Found) 301永久迁移( Moved Permanently) 21
21 7.2 Response对象 • 7.2.2 Response的属性 代码 说 明 100 继续(Continue) 101 切换协议(Switching Protocol) 200 OK 201 创建(Created) 202 接受(Accepted) 203 无授权的信息(Non Authoritative Information) 204 没有网页内容(No Content) 205 重置网页内容(Reset Content) 206 部分网页内容(Partial Content) 300 多重选择(Multiple Choices) 301 永久迁移(Moved Permanently) 代码 说 明 302 发现(Found) 303 查看其他(See Other) 304 无修改(Not Modified) 305 使用Proxy(Use Proxy) 306 没有使用(Unused) 307 暂时转向(Temporary Redirect) 400 不正确的要求 401 无授权(Unauthorized) 402 付费要求(Payment Required) 403 禁止(Forbidden) 404 没有发现(Not Found)
令中国铁道出版社 7.2 Response对 7.2.2 Response的属性 代码 说 明 代码 说 明 405不允许使用这种方法 Method not415不支持的媒体类型( Un supported Allowed) Media Type) 406不接受( Not Acceptable) 416输入的范围不合适( Requested Range 407Poxy需授权才能使用(Poxy Not Certifiable) Authentication Required) 417请求失败( Expectation Failed) 408超时( Request Time out) 500服务器内部错误( Internal Server Error) 409冲突 Conflict 501不执行( Not Implemented) 410结束(Gone) 502网关错误( Bad Gateway 411长度要求( ength Required) 503服务无法使用( Service Unavailable) 412先决条件失败( Precondition failed)504网关超时( Gateway Timeout 412输入的内容过大( Request Entity 505不支持此版的ht协议( Http Version Too Large) Not Supported) 414URL太长( Request-URL Too Long) 22
22 7.2 Response对象 • 7.2.2 Response的属性 代码 说 明 415 不支持的媒体类型(Un supported Media Type) 416 输入的范围不合适(Requested Range Not Certifiable) 417 请求失败(Expectation Failed) 500 服务器内部错误(Internal Server Error) 501 不执行(Not Implemented) 502 网关错误(Bad Gateway) 503 服务无法使用(Service Unavailable) 504 网关超时(Gateway Timeout) 505 不支持此版的http协议(HTTP Version Not Supported) 代码 说 明 405 不允许使用这种方法(Method Not Allowed) 406 不接受(Not Acceptable) 407 Proxy需授权才能使用(Proxy Authentication Required) 408 超时(Request Time out) 409 冲突(Conflict) 410 结束(Gone) 411 长度要求(Length Required) 412 先决条件失败(Precondition Failed) 412 输入的内容过大(Request Entity Too Large) 414 URL太长(Request-URL Too Long)
令中国铁道出版社 7.2 Response对 7.2.2 Response的属性 下面是一个测试 Response对象属性的范例Ch7-2.asp) Response Cache Control %><br> Response buffer =true Response Content Type =<% Response. charset = bigs Response Content Type %><br> Response. expires =1 Response. Expires Absolute =<% Response. Expires Abs <br <HTML> Response. IsClient Connected =<% <HEAD> Response Is Client Connected %><br> <TTLE> Response对象测试</TTE> Response Status=<% <HEAD> Response Status %><br> <BODY BGCOLORE"#FFFFFF"> <hr> <h2>< center> Response对象属性测试< center> /center ></h2 <img src=tiedao. bmp Response Buffer =<% <center Response Buffer %><br> </body> Response Cache Control =<% 23
23 7.2 Response对象 • 7.2.2 Response的属性 下面是一个测试Response对象属性的范例(Ch7-2.asp): <% Response.buffer = true Response.charset = big5 Response.expires = 1 %> <HTML> <HEAD> <TITLE>Response对象测试</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <h2><center>Response 对象属性测试 </center></h2> <hr> Response.Buffer = <% = Response.Buffer %><br> Response.CacheControl = <% = Response.CacheControl %><br> Response.ContentType = <% = Response.ContentType %><br> Response.ExpiresAbsolute = <% = Response.ExpiresAbsolute %><br> Response.IsClientConnected = <% = Response.IsClientConnected %><br> Response.Status = <% = Response.Status %><br> <hr> <center> Created by <br> <img src=tiedao.bmp> </center> </body> </html>
令中国铁道出版社 7.2 Response对 7.2.2 Response的属性 下图为对象属性测试结果(部分属性因为设置的关系,无法在 浏览器显示出设置结果) Response对象测试- icrosoft Internet Explorer回回区 文件)编辑)查着收藏(A)工具①)帮助QD ⊙后退·9P搜索☆收夹e合,品 地址0)ht∥.001/7hy2转到链接 Response对象属性测试 Response Cache Control= private Buffer Tri Response. ContentType text/html Response. ExpiresAbsolute = 2006-10-14 22: 18: 40 Response. IsClientConnected T Response Status 200 OK reated by AILWAY s Internet 24
24 7.2 Response对象 • 7.2.2 Response的属性 下图为对象属性测试结果(部分属性因为设置的关系,无法在 浏览器显示出设置结果)
令中国铁道出版社 7.2 Response对 72.3 Response的方法 Response对象共有八种方法,它们是: (1)AddHeader Append Olog (3)Binary Write cLear 5)End (6)Flush 7)Redirect 8)Write Addheader Addheader方法是用来设置HIML文件的标题(Head)。它的语法 如下 Response. Addheader标题变量名称,标题变量值 25
25 7.2 Response对象 • 7.2.3 Response的方法 Response对象共有八种方法,它们是: (1)AddHeader (2)AppendToLog (3)BinaryWrite (4)Clear (5)End (6)Flush (7)Redirect (8)Write ● AddHeader AddHeader方法是用来设置HTML文件的标题(Head)。它的语法 如下: Response.Addheader标题变量名称,标题变量值