Hi there.
I'm creating a little robot program to get some info from game site. And I faced a problem that my robot wouldn't login... The form they use for logging in looks like this
<form name="Form1" method="post" action="default.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtM" />
<input name="tbLogin" type="text" size="14" id="tbLogin" />
<input name="tbPassword" type="password" size="14" id="tbPassword" />
<input type="image" name="btLogin" id="btLogin" src="/vr/images/bt_ent
+er.jpg" alt="" style="border-width:0px;border-style:None;" />
</form>
And as far as i figured out problem is because they don't use submit button but <input type=image> and as for my robot text it goes like this
my $response = $browser->post( $url,
[ 'tbLogin' => 'value',
'tbPassword' => 'value',
'__VIEWSTATE' => 'value',
]
);
And all the time my robot get reply that it performed illegal login operation, and wouldn't go through loging process. I think that it' because i don't specify btLogin in post method of browser, but there is no value to put with it... Their site is in ASP.net.
Any ideas?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.