Hey you know what? I did go ahead and look more closely at the headers after your post and I had been using a non-URL-decoded value for a parameter called ctl00_ContentPlaceHolder1_ctl00_rcbusertype_ClientState. The encoded value was
%7B%22logEntries%22%3A%5B%5D%2C%22value%22%3A%22Subscriber%22%2C%22text%22%3A%22Subscriber%22%2C%22enabled%22%3Atrue%7D
and I used http://meyerweb.com/eric/tools/dencoder/ to decode it so now the following works:
$mech->set_fields(
'ctl00$ContentPlaceHolder1$ctl00$rcbusertype_Input' => "Su
+bscriber",
'ctl00$ContentPlaceHolder1$ctl00$txtUserName' => $un,
'ctl00$ContentPlaceHolder1$ctl00$txtPassword' => $pw,
ctl00_ContentPlaceHolder1_ctl00_rcbusertype_ClientState =>
'{"logEntries":[],"value":"Subscriber","text":"Subscriber"
+,"enabled":true}'
);
my $response = $mech->click_button(
name => 'ctl00$ContentPlaceHolder1$ctl00$L
+oginButton',
x=>26,
y=>10
);
!
I like computer programming because it's like Legos for the mind.
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.