您还不是vip会员或者没有登录,无法进入学习,请登录后访问或者联系站长升级会员等级!
为了能给大家提供更好的服务和视频教程,本站VIP课程需要收取一定的学费,具体收费标准根据不同的班级课程和有效期长短有所不同,具体请咨询在线老师,多谢您对本站的支持!

11、 response. IsClientConnected属性:
IsClientConnected 属性指示出客户机是否已与服务器断开连接。
实例
< %
If response.IsClientConnected=true then
response.write("The user is still connected!")
else
response.write("The user is not connected!")
end if
%>
12、 response. Status 属性:
Status 属性规定由服务器返回的状态行的值。如:301、404、501等
实例:屏蔽某IP访问
< %
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
实例:ASP程序实现301重定向
<%
if request.ServerVariables("HTTP_HOST")=“redwe.net" then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.redwe.net/"
Response.End
end if
%>
13、 response. PICS 属性:
PICS 属性可向响应头部的 PICS 标记追加值。
什么是 PICS ?PICS (Platform for Internet Content Selection) 分级系统用于对网站内的内容进行分级。它看起来类似这样:
PICS-1.1 "http://www.rsac.org/ratingsv01.html" by "your@name.com" for "http://www.somesite.com" on "2002.10.05T02:15-0800" r (n 0 s 0 v 0 l 0)
PICS-1.1:PICS 版本号
"http://www.rsac.org/ratingsv01.html" 分级机构
by "your@name.com" 标记的作者
for "http://www.somesite.com" 已被分级的文档的 URL
on "2002.10.05T02:15-0800" 失效日期
r (n 0 s 0 v 0 l 0) 等级
上一讲:asp网站开发45:Expires属性设置缓存过期时间 | 下一讲:asp网站开发47:Response对象AddHeader方法
![]() |
豫公网安备 41010202002486号 | ICP备案:豫ICP备18044432号-1 |