Angeldust has asked for the wisdom of the Perl Monks concerning the following question:
The third variable must be submitted with real square brackets, not %5B and %5D. Otherwise the web application will not understand the request. Default behavior is to URL-encode them and I have not found a way to avoid this. Can anyone tell me how I can deactivate automatic URL encoding in variable names?my $ua = LWP::UserAgent->new(); my $res = $ua->request(POST "http://www.example.com/test.php", [ "var1" => "foo", "var2" => "bar", "var3[id]" => "foobar" ]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to avoid URL-Encoding in LWP POST Request
by Anonymous Monk on Nov 24, 2008 at 04:20 UTC | |
by Your Mother (Archbishop) on Nov 24, 2008 at 17:21 UTC | |
by Anonymous Monk on Nov 25, 2008 at 01:53 UTC | |
by Your Mother (Archbishop) on Nov 25, 2008 at 06:44 UTC | |
by Anonymous Monk on Nov 25, 2008 at 07:41 UTC | |
|
Re: How to avoid URL-Encoding in LWP POST Request
by almut (Canon) on Nov 24, 2008 at 16:50 UTC | |
|
Re: How to avoid URL-Encoding in LWP POST Request
by nuclon (Acolyte) on Nov 24, 2008 at 14:26 UTC |