惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
腾讯CDC
D
Docker
G
Google Developers Blog
D
DataBreaches.Net
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
The Cloudflare Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
量子位
美团技术团队
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 好窝

SQL Server 日期和时间函数 面试谈离职 技巧很重要 服务器应用程序不可用 Scripting.FileSystemObject 的文件复制,删除,移动操作 - 好窝 - 博客园 刷新框架网页七种方法 asp套打位置 三层结构 RecordSet中的open完全的语法 域名删除时间及whois状态说明 把书看薄,再看厚 ContentType类型 使用Request.Servervariables("HTTP_USER_AGENT")取值 HTTP_X_FORWARDED_FOR & REMOTE_ADDR HTTP 头已经写入到客户浏览器。任何HTTP 头的修改必须在写入页内容之前。 使用获取url中的文件名和传过来的值 Response.ContentType 怎么重启IIS 笔记本键盘设置 安装SQL2000时提示错误:以前的某个程序安装己在安装计算机上创建挂起的文件操作
Response.AddHeader使用实例收集
好窝 · 2008-02-10 · via 博客园 - 好窝

文件下载,指定默认名

1Response.AddHeader("content-type","application/x-msdownload");
2Response.AddHeader("Content-Disposition","attachment;filename=要下载的文件名.rar");

刷新页面

1Response.AddHeader “REFRESH”, ”60;URL=newpath/newpage.asp” 
2这等同于客户机端<META>元素: 
3<META HTTP-EQUIV=”REFRESH”, “60;URL=newpath/newpage.asp”

页面转向

1Response.Status = “302 Object Moved” 
2Response.Addheader “Location”, “newpath/newpage.asp” 
3这等同于使用Response.Redirect方法: 
4Response.Redirect “newpath/newpage.asp”

强制浏览器显示一个用户名/口令对话

1Response.Status= “401 Unauthorized” 
2Response.Addheader “WWW-Authenticate”, “BASIC” 
3强制浏览器显示一个用户名/口令对话框,然后使用BASIC验证把它们发送回服务器(将在本书后续部分看到验证方法)。

如何让网页不缓冲

1Response.Expires = 0 
2Response.ExpiresAbsolute = Now() - 1
 
3Response.Addheader "pragma","no-cache"
 
4Response.Addheader "cache-control","private"
 
5Response.CacheControl = "no-cache