重发(源码):我用AspTear在调用一个接口文件时,如何在接口文件中读出是哪个文件调用的?

bingbhz 2004-11-23 11:17:24
aa.asp
<%
Function postdata(spostURL,spoststr)
On Error Resume Next

Set xobj = CreateObject("SOFTWING.ASPtear")
xObj.UserAgent = "Mozilla/4.0 (compatible; MSIE 5.0b2; Windows NT)"
xobj.FollowRedirects = false
xobj.ConnectionTimeout =4000
xObj.TrustUnknownCA = true
xObj.IgnoreInvalidCN = True
strRetval = xobj.Retrieve(spostURL,1, spoststr, "", "")

If Err.Number <> 0 Then
strRetval="error|" & Err.Description
End If
Set xobj=Nothing
postdata = strRetval
End Function
Response.Write postdata("http://localhost/bb.asp","")
%>


bb.asp
<%
Response.Write "HTTP_REFERER=" & Request.ServerVariables("HTTP_REFERER") & "<p>"
%>

为什么我取不到
Request.ServerVariables("HTTP_REFERER") 的值
...全文
56 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
yqh1314 2004-11-23
  • 打赏
  • 举报
回复
是的 因为得到的值为空!
beliefljh 2004-11-23
  • 打赏
  • 举报
回复
Request.ServerVariables("HTTP_REFERER") 读的是你程序发布服务器上的
xx123731 2004-11-23
  • 打赏
  • 举报
回复
Request.ServerVariables("HTTP_REFERER") 只能取本机的吧

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧