use HTTP::Request::Common Problem when Updating with String

From: Sure (csuresh01_at_yahoo.com)
Date: 09/01/04


Date: 31 Aug 2004 23:15:15 -0700

Hello All,
I want to update a form using the LWP & HTTP method. It was
working fine when I am updating the values like this

$ua = LWP::UserAgent->new;
$url ='http://xxx.be/cgi-bin/viewauth/Tracking/TestProjectAgainInitialDevStory#edittable2';
use HTTP::Request::Common;

my $res = $ua->request(POST $url,
  Content_Type =>'form-data',
  Content => [
  ettablenr => '2',
  etcell2x1 =>'Task',
  etcell2x2 =>'2',
  etcell2x3 =>'3',
  etcell2x4 =>'4',
  etcell2x5 =>'High',
  etcell2x6 =>'SureshC',
  etcell2x7 =>'CSuresh',
  etcell2x8 =>'Twiki Data Updation',
  etrows => '2',
  etsave =>'Save table']);

It was not working when I store the value into a Variable. Like This.

$postStr = ettablenr => '2', etcell2x1 =>'Task', etcell2x2 =>'2',
etcell2x3 =>'3', etcell2x4 =>'4', etcell2x5 =>'High', etcell2x6
=>'SureshC', etcell2x7 =>'CSuresh', etcell2x8 =>'Twiki Data
Updation', etrows => '2', etsave =>'Save table']);

$ua = LWP::UserAgent->new;
my $res = $ua->request(POST $url, Content_Type=>'form-data', Content
=>[$postStr]);

Can any one pls let me know what is the problem when i doing like
this.

Thanks in Advance



Relevant Pages

  • Lwp Post Problem
    ... I want to update a form using the LWP & HTTP method. ... working fine when I am updating the values like this ... etcell2x8 =>'Twiki Data Updation', ...
    (comp.lang.perl.misc)
  • Lwp Post Problem
    ... I want to update a form using the LWP & HTTP method. ... working fine when I am updating the values like this ... etcell2x8 =>'Twiki Data Updation', ...
    (comp.lang.perl.modules)