`
hanbaohong
  • 浏览: 387648 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Ajax跨域代理访问网络资源

    博客分类:
  • ASP
 
阅读更多

解决Ajax跨域访问报“没有权限”的错误。
代码下载地址:

http://dev.mo.cn/upfiles/20101118175349810.rar

 

<!--#include file="smart.asp"-->
<%
Response.charset="utf-8"
dim url,method,data,charset
url =Request.Form("targeturl")
method =Request.Form("method")
data =Request.Form("data")
charset = Request.Form("charset")
if charset = "" then charset = "GB2312"
response.Write SmartHttp(url,method,data).send().gettext(charset)
set myhttp = nothing
%>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics