Guys, i need a way to make this request(html code(post method)) and get all links from the response page and insert the links in a ms access table. i use Ms access 2007 but i have a lot of results in google finding by "http post method vb" but i cant make the code work please guys help!!
The request code:
<HTML>
<head>
<title>Download</title>
</head>
<form target="CVM" action=" method="post">
<p>Login: <input type="text" name="txpLogin" value="xxx"></p>
<p>Pass: <input type="text" name="txpSenha" value="xxx" ></p>
<p>Date Pesquisa: <input type="text" name="txpData" value="01/12/2008" ></p>
<p>Hrs: <input type="text" name="txpHora" value="00:00" ></p>
<p>Tip: <input type="text" name="txpDocumento" value="ITR" ></p>
<p>subjectview: <input type="text" name="txpAssuntoIPE" value="NAO" ></p>
<input type="image" src="blank" name="submit" alt="RUN" />
</form>
<p>
</html>
Runing this, the site response are xml page.
Real sample of response page:
<?xml version="1.0" encoding="ISO-8859-1"?>
- <Download DataSolicitada="01/12/2008 00:00"TipoDocumento="ITR" DataConsulta="06/01/2009 09:22">
<Link url=" Doc="ITT" ccv="11975" DataRef="30/09/2008" FrmDtRef="dd/mm/aaaa" Sit="Lib" />
<Link url=" Doc="ITT" ccv="11855"
DataRef="30/09/2008" FrmDtRef="dd/mm/aaaa"
Sit="Lib" />
</Download>
Waiting help
Charles F.
The request code:
<HTML>
<head>
<title>Download</title>
</head>
<form target="CVM" action=" method="post">
<p>Login: <input type="text" name="txpLogin" value="xxx"></p>
<p>Pass: <input type="text" name="txpSenha" value="xxx" ></p>
<p>Date Pesquisa: <input type="text" name="txpData" value="01/12/2008" ></p>
<p>Hrs: <input type="text" name="txpHora" value="00:00" ></p>
<p>Tip: <input type="text" name="txpDocumento" value="ITR" ></p>
<p>subjectview: <input type="text" name="txpAssuntoIPE" value="NAO" ></p>
<input type="image" src="blank" name="submit" alt="RUN" />
</form>
<p>
</html>
Runing this, the site response are xml page.
Real sample of response page:
<?xml version="1.0" encoding="ISO-8859-1"?>
- <Download DataSolicitada="01/12/2008 00:00"TipoDocumento="ITR" DataConsulta="06/01/2009 09:22">
<Link url=" Doc="ITT" ccv="11975" DataRef="30/09/2008" FrmDtRef="dd/mm/aaaa" Sit="Lib" />
<Link url=" Doc="ITT" ccv="11855"
DataRef="30/09/2008" FrmDtRef="dd/mm/aaaa"
Sit="Lib" />
</Download>
Waiting help
Charles F.