I am struggling with posting Perl data using LWP.
Here is my code
$req = POST $url, [
SESSID => $sessid,
csrf => $csrf,
domainid => '1234567',
type => 'A',
default => '0',
record-type => 'A',
a-record%5B%5D => '12.12.12.12',
aaaa-record => '',
cname-record => ''
];
The code is obviously failing at a-record%5B%5D
. How do I make this Perl compliant?
I already tried 'a-record%5B%5D'
; a-record\%5B\%5D
; a-record[]
; a-record\[\]
; a-record\%5B\%5D
From my understanding, the field name of the form is indeed
<input id="a0" class="left" type="text" value="11.11.11.11" name="a-record[]">