谁能帮我写一页asp,就一个页面?

来源:百度知道 编辑:UC知道 时间:2024/05/29 15:06:02
谁能帮我写个asp?需要这样的功能。

比如叫123.asp。
访问下面的时候
123.asp?url=http://dl_dir.qq.com/qqfile/qq/QQ2009/QQ2009Beta_chs.exe
能下载
http://dl_dir.qq.com/qqfile/qq/QQ2009/QQ2009Beta_chs.exe

访问下面的时候
123.asp?url=http://ime.sogou.com/dl/sogou_pinyin_40b.exe
能下载
http://ime.sogou.com/dl/sogou_pinyin_40b.exe
不知道说清楚没有,是不是不难呢?我文盲啊!

123.asp?url=http://dl_dir.qq.com/qqfile/qq/QQ2009/QQ2009Beta_chs.exe

传值以后这个页面可以这样写:

<%
'接收URL的传值
url = Request.QueryString("url")
'重新定向到URL所指向的位置
Response.Redirect url
Response.End
%>

就这么几行就可以自动弹出下载提示窗口了

<html>
<head>
<title>下载页面</title>
</head>
<body>
<a href="http://dl_dir.qq.com/qqfile/qq/QQ2009/QQ2009Beta_chs.exe ">下载地址1</a><br />
<a href="http://dl_dir.qq.com/qqfile/qq/QQ2009/QQ2009Beta_chs.exe ">下载地址2</a><br />
<a href="