G
Grey Alien
I am trying to programatically POST an ASP form, to allow me to log on
to a site programatically.
<form name="aspnetForm" method="post" action="Default.aspx"
id="aspnetForm">
<input name="_ct99:Content:UsrName" type="text"
id="_ct99_Content_UsrName" />
<input name="_ct99:Contentwd" type="password"
id="_ct99_Content_Pwd" />
<input type="submit" name="_ct99:Content:btnLogon" value="Logon"
id="_ct99_Content_btnLogon" />
<input id="_ct99_Content_SavePwd" type="checkbox"
name="_ct99:Content:SavePwd" /></p>
</form>
What I find strange/confusing is that the name attribute of the elements
(i.e. the controls) are not 'legal' (i.e. they contain colons etc).
I need the 'name'='value' pairs to use in the POST.
I am using an external library (cURL) to do the POST action, so far I
have failed to log on when using either the name attribute (looked
suspicious anyway), but I also failed to log on when I used the id
attribute.
The "problem" definitely lies with this ASP.Net page, since I have
successfully logged on other pages using the post method.
Any ideas/suggestions (or preferably solutions) would be most welcome
to a site programatically.
<form name="aspnetForm" method="post" action="Default.aspx"
id="aspnetForm">
<input name="_ct99:Content:UsrName" type="text"
id="_ct99_Content_UsrName" />
<input name="_ct99:Contentwd" type="password"
id="_ct99_Content_Pwd" />
<input type="submit" name="_ct99:Content:btnLogon" value="Logon"
id="_ct99_Content_btnLogon" />
<input id="_ct99_Content_SavePwd" type="checkbox"
name="_ct99:Content:SavePwd" /></p>
</form>
What I find strange/confusing is that the name attribute of the elements
(i.e. the controls) are not 'legal' (i.e. they contain colons etc).
I need the 'name'='value' pairs to use in the POST.
I am using an external library (cURL) to do the POST action, so far I
have failed to log on when using either the name attribute (looked
suspicious anyway), but I also failed to log on when I used the id
attribute.
The "problem" definitely lies with this ASP.Net page, since I have
successfully logged on other pages using the post method.
Any ideas/suggestions (or preferably solutions) would be most welcome