This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 求教ASP 中的两个问题在ASP 中如何编程实现已下两个问题
1:
根据已知的URL 如何获取 重定向后的URL
比如原始的URL是:
http://mappoint.msn.com/map.aspx?L=USA&C=43.53260,-79.70659&A=7.16667&P=|43.53260,-79.70659|1|3|L1|
重定向后的URL 是:
http://mappoint.msn.com/(jfnyk555jkwong55cqoftc45)/map.aspx?L=USA&C=43.53260,-79.70659&A=7.16667&P=|43.53260,-79.70659|1|3|L1|
2:
根据URL 如何获取该URL 的HTML SOURCE CODE
-bobo123(bobo);
2004-8-9
{399}
(#1834420@0)
-
你试试webrequest
-vega_lee(天津包子-就不改);
2004-8-9
(#1834466@0)
-
这个好象只能在ASP.NET 中使用.
-bobo123(bobo);
2004-8-9
(#1834527@0)
-
should like that<%
response.redirect "http://mappoint.msn.com/(jfnyk555jkwong55cqoftc45)/map.aspx?L=USA&C=43.53260,-79.70659&A=7.16667&P=|43.53260,-79.70659|1|3|L1|"
%>
-benbendan(相忘于江湖);
2004-8-9
{156}
(#1834545@0)
-
I lost sth<%
for each element in request.qureystring
strElement=request(element)
.....
next
response.rediect "..."
%>
-benbendan(相忘于江湖);
2004-8-9
{117}
(#1834551@0)
-
最好不要通过 RESPONSE.REDIRECT url 来得到 REDIRECT URL,因为当用到RESPONSE.REDIRECT URL 时候 会把整个web PAGE 显示出来
-bobo123(bobo);
2004-8-9
(#1834612@0)
-
1. use redirect 2. use DOM
-ningxin0809(雁影行洲);
2004-8-9
(#1834549@0)
-
for the second, tryDim objXML,sURL,strHTML
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
sURL = "http://www.yahoo.com"
objXML.Open "GET",sURL, false
objXML.send()
strHTML = objXML.responseText
Set objXML = Nothing
-guestagain(guest again);
2004-8-9
{217}
(#1835166@0)
-
谢谢
-bobo123(bobo);
2004-8-9
(#1835181@0)