Re: url_encode for LWP POST

2013-07-25 Thread Feng He
Now I got it, from lwpcook it's this way: Lazy people use the HTTP::Request::Common module to set up a suitable POST request message (it handles all the escaping issues) and has a suitable default for the content_type: use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::U

Re: url_encode for LWP POST

2013-07-25 Thread Feng He
Do you mean HTTP::Request::Common will do the url_encode stuff automatically? Thanks Charles. On 2013-7-25 18:30, Charles DeRykus wrote: On 7/25/2013 12:57 AM, Feng He wrote: Would LWP::UserAgent call the url_encode() method from URL::Encode automatically for the posted content? use LWP:

Re: url_encode for LWP POST

2013-07-25 Thread Charles DeRykus
On 7/25/2013 12:57 AM, Feng He wrote: Would LWP::UserAgent call the url_encode() method from URL::Encode automatically for the posted content? use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = HTTP::Request->new( POST => 'http://rt.cpan.org/Public/Dist/Display.html'); $re