wind-of-wind

BlogJava 首页 新随笔 联系 聚合 管理
  2 Posts :: 1 Stories :: 2 Comments :: 0 Trackbacks

我的评论

re: 如何用jsp写一个ajax跨域代理? wind-of-wind 2006-12-18 13:14  
AJAX代理---ASP(VBScript)

AJAXProxy.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Function send_request(url)
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False, "", ""
.Send
send_request = .ResponseBody
End With
Response.ContentType="text/xml"
Set Retrieval = Nothing
End Function

url=Request("RSS_URL")
Response.BinaryWrite send_request(url)
Response.Flush
%>
这是用asp来实现的.
象上面一样需要用jsp来实现!谢谢!