J
Jonathan Smith
I am working for a client who needs to be able to log into a website and
download some files. They will not disclose the URL to me, but have given me
the form part of the html code, seen below:
<body>
<form name="frmMain" method="post" action="CsvFiles.aspx" id="frmMain">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTEzNTk2MjQyMzRkZPqs0JpoMJawnQTls76tB64hGmcW" />
<h1>Login</h1>
<div id="LoginPanel">
<table>
<tr>
<td>Username: </td>
<td><input name="Username" type="text" id="Username" /></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="Password" type="password" id="Password" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="SubmitButton" value="Login"
id="SubmitButton" /></td>
</tr>
</table>
</div>
</form>
</body>
How do i go about constructing a httpwebrequest to login and download the
csv files
Regards
JOnathan
download some files. They will not disclose the URL to me, but have given me
the form part of the html code, seen below:
<body>
<form name="frmMain" method="post" action="CsvFiles.aspx" id="frmMain">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTEzNTk2MjQyMzRkZPqs0JpoMJawnQTls76tB64hGmcW" />
<h1>Login</h1>
<div id="LoginPanel">
<table>
<tr>
<td>Username: </td>
<td><input name="Username" type="text" id="Username" /></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="Password" type="password" id="Password" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="SubmitButton" value="Login"
id="SubmitButton" /></td>
</tr>
</table>
</div>
</form>
</body>
How do i go about constructing a httpwebrequest to login and download the
csv files
Regards
JOnathan