日期:2014-05-18  浏览次数:20709 次

被调用asp回传URL地址的问题
有一个需求,A.asp   调用   B.asp时,B.asp需要给A.asp回传一个URL,要求除必要的URL字符串外不能再有多余字符。代码如下却不能正确显示,输出页面中显示页面无法打开,查看对应的链接地址实际为“ <!DOCTYPE   HTML   PUBLIC”,是HTML的包头,这样肯定无法打开了。即使回传代码只有 <%response.write   url%> 也不能成功。   各位帮忙看一下如何解决?
<%  
url= "http://192.168.1.3/qhdz.asp "  
intFilelength=lenB(url)  
Response.AddHeader   "Content-Length ",intFilelength  
Response.AddHeader   "HTTP/1.1 ",   200,   OK  
Response.AddHeader   "Server ",   "Apache/1.39 "  
Response.AddHeader   "Content-type ",   "text/html "  
response.write   url  
%>  


------解决方案--------------------
发错地方啦