use HTTP::Request::Common Problem when Updating with String
From: Sure (csuresh01_at_yahoo.com)
Date: 09/01/04
- Next message: chris-usenet_at_roaima.co.uk: "Re: Formmail.pl - Sendmail vs. Smtp"
- Previous message: Pablo S: "mod_perl - dbi - DBD:Pg performance test, old vs new"
- Next in thread: Jim Gibson: "Re: use HTTP::Request::Common Problem when Updating with String"
- Reply: Jim Gibson: "Re: use HTTP::Request::Common Problem when Updating with String"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: chris-usenet_at_roaima.co.uk: "Re: Formmail.pl - Sendmail vs. Smtp"
- Previous message: Pablo S: "mod_perl - dbi - DBD:Pg performance test, old vs new"
- Next in thread: Jim Gibson: "Re: use HTTP::Request::Common Problem when Updating with String"
- Reply: Jim Gibson: "Re: use HTTP::Request::Common Problem when Updating with String"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|