我只是编译源代码以在Intranet登录页面中登录,浏览低谷页面,抓取数据等,然后从Excel表单开始使用Internet应用程序和vba。因此,我想使用静默连接来做同样的事情。我可以登录并浏览某些页面,但不能浏览那些单击超链接文本的页面,例如
<a href=/home/webservlet>info</a>
如果我直接进入url的直接模式,即将http作为winhttp对象,那么
http.open("get", http:// homeserver/home/webservlet)
响应为“未记录...”或其他。我看到在html代码中有jquery,所以我认为通过winhttp向jquery发送正确的参数。这是一个坏主意吗?以及如何做?
************添加了html代码页。粗体的href我想达到的****** **
this is the link that i want
<li class="el_link"><a href="/S*****Uffici/S*****WebServlet">Informazioni Generalizzate</a>
</li>****
<HEAD>
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META http-equiv="Cache-Control" content="no-cache,no-store,must-revalidate">
<META http-equiv="Expires" content="-1">
<META http-equiv="Pragma" content="no-cache">
<!-- includo CSS Base -->
<LINK REL=STYLESHEET TYPE="text/css" HREF="/S*****Static/home/css/S*****Home.css">
<LINK REL=STYLESHEET TYPE="text/css" HREF="/S*****Static/home/css/jquery-ui-1.8.10.custom.css">
<!-- includo i JS di Servizio dinamicamente -->
<script type="text/javascript" src="/S*****Static/home/js/jquery.js"></script>
<script type="text/javascript" src="/S*****Static/home/js/toggleHome.js"></script>
<!-- includo il titolo dinamicamente -->
<TITLE>
Servizi di ********.
</TITLE>
</HEAD>
<BODY>
<div class="contenitore">
<div id="testata">
<div id="testata_fondo_i">
<div id="testata_sx"><a href="http://www.a*****.it/" title="Vai al sito [Link a sito esterno]" target="_agenziaWindow"><img
src="/S*****Static/home/immagini/logo.gif" alt="Sito *********"></a>
</div>
<div id="testata_centro_i"></div>
<div id="testata_dx_i"></div>
</div>
</div>
<LINK REL=STYLESHEET TYPE="text/css" HREF="/S*****Static/home/css/menu_dropDown.css">
<!--[If lt IE 9]>
<LINK REL=STYLESHEET TYPE="text/css" HREF="/S*****Static/home/css/menu_dropDown_IElt9.css">
<![endif]-->
<!--[If IE 9]>
<LINK REL=STYLESHEET TYPE="text/css" HREF="/S*****Static/home/css/menu_dropDown_IE9.css">
<![endif]-->
<div class="menu_orizzontale">
<div class="menu">
<ul class="blockeasing">
<li class="main">
<a href="/S*****Home"> Home SERVIZI</a>
</li>
<li class="main">
<a href="#">Consultazioni</a>
<ul class="subnav0">
<li><a href="/S*****Uffici/S*****WebServlet">Informazioni Generalizzate</a></li>
<li><a href="/CollegamentoTerritorioWeb/TerritorioServlet">Catasto e Conservatorie</a></li>
</ul>
</li>
<li class="main">
<a href="#">Consultazioni Dati non A.T.</a>
<ul class="subnav1">
<li><a href="/CciaaConsultazioneWeb/CCIAAServlet">Camera di Commercio</a></li>
<li><a href="/Conto/E*****Servlet">Estratto Conto </a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="esci">
<a href="/S*****Home/CloseSession"> Esci</a>
</div>
<div class="user">
Utente connesso <i><b>P*************R</b></i>
</div>
<script type="text/javascript" src="/S*****Static/home/js/jquery-ui-1.8.24.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("ul.blockeasing li.main").mouseover(function(){
$(this).find('.subnav0').stop().animate({height: '59px', opacity:'1'},{queue:false, duration:1500, easing: 'easeOutElastic'})
$(this).find('.subnav1').stop().animate({height: '59px', opacity:'1'},{queue:false, duration:1500, easing: 'easeOutElastic'})
$(this).find('.subnav2').stop().animate({height: '11px', opacity:'1'},{queue:false, duration:1500, easing: 'easeOutElastic'})
});
$("ul.blockeasing li.main").mouseout(function(){
$(this).find('.subnav0').stop().animate({height:'0px', opacity:'0'},{queue:false, duration:1600, easing: 'easeOutElastic'})
$(this).find('.subnav1').stop().animate({height:'0px', opacity:'0'},{queue:false, duration:1600, easing: 'easeOutElastic'})
$(this).find('.subnav2').stop().animate({height:'0px', opacity:'0'},{queue:false, duration:1600, easing: 'easeOutElastic'})
});
$("ul.blockeasing li").hover(function() {
$(this).stop().animate({ backgroundColor: "#F7F7F7"}, 600);},
function() {
$(this).stop().animate({ backgroundColor: "#FDAF7B"}, 600);
});
});
</script>
<div class="vociMenu">
<!-- script per la corretta visualizzazione delle colonne -->
<!-- Link al servizio composto da sottomenu -->
<h2 class="trigger"><a href="#">Consultazioni</a></h2>
<div class="datiMenu2">
<ul class="menu_ul">
**‘ this is the link that i want
<li class="el_link"><a href="/S*****Uffici/S*****WebServlet">Informazioni Generalizzate</a>
</li>**
<li class="el_link"><a href="/CollegamentoTerritorioWeb/TerritorioServlet">Catasto e Conservatorie</a>
</li>
<li class="el_end"></li>
</ul>
</div>
<!-- Link al servizio composto da sottomenu -->
<h2 class="trigger"><a href="#">Consultazioni<br>Dati non A.T.</a></h2>
<div class="datiMenu2">
<ul class="menu_ul">
<li class="el_link"><a href="/CciaaConsultazioneWeb/CCIAAServlet">Camera di Commercio</a>
</li>
<li class="el_link"><a href="/ContoEquitalia/EquitaliaServlet">Estratto Conto AdER</a>
</li>
<li class="el_end"></li>
</ul>
</div>
</div>
<!--
<div class="validator">
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
</p>
</div>
-->
<div class="footer">
<div class="destra">
<img src="/S*****Static/home/immagini/Sogei.gif" alt="logo Sogei">
</div>
</div>
</div>
</BODY>
</HTML>