Sorry, Missed part of the code last time. Here is the full code
my $browser1 = LWP::UserAgent->new; my $response1 = $browser1->post( 'http://localhost/cgi-bin/viewformdata.pl', [ 'K.Page.B' => "do214",, 'KRI' => "0,0,1", 'X' => $blk, 'X3.SRC' => $blk, 'K.Loop.B' => "rsld,rsul", 'AA.SRC' => $blk, 'CP.SRC' => $blk, 'SD.SRC' => ",,", 'D1.SRC' => ",", 'K.Page.E' => "do214", 'K.Section.B' => "rsld,rsul,rsul", 'K.Section.E' => "rsld,rsul,rsul", 'X1.SRC' => "'", 'XA.SRC' => $blk, 'SD.DT' => ",,", 'OSD' => ",", 'XA.DT' => $blk, 'SD.TM' => ",,", 'OSD-QTY' => ",", 'XA.TM' => $blk, 'K.Loop.E' => "rsld,rsul", 'S.Continue.x' => "12", 'S.Continue.y' => "16", 'AB.SRC' => ",", 'X9.SRC' => ",", 'KWFSTATE' => $KWFSTATE, 'pro' => $pro, 'eq-num' => $eqnum, 'AA.DT' => $AA_DT, 'AA.TM' => $AA_TM, 'X3.DT' => , 'X3.TM' => , 'CP.DT' => $CP_DT, 'CP.TM' => $CP_TM, 'AB.DT' => $AB_DT, 'AB.TM' => $AB_TM, 'X9.DT' => , 'X9.TM' => , 'X1.DT' => $X1_DT, 'X1.TM' => $X1_TM, 'D1.DT' => $D1_TM, 'D1.TM' => $D1_TM, ], ); die "Error: ", $response1->status_line unless $response1->is_success; $r1=$response1->content; print "$r1 \n";
Thanks

In reply to Re: HTTP POST Using LWP::UserAgent by developer
in thread HTTP POST Using LWP::UserAgent by developer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.