Hello:
I am trying to do a HTTP Post to a web site. When I do the POST
I get the following error message:
Not an ARRAY reference at C:/Perl/site/lib/URI/_query.pm line 35.
Here is the code:
my $response1 = $browser1->post( 'http://localhost/cgi-bin/fdata.pl', [ 'K.Page.B' => "doxxx",, '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' => "doxxx", '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' => ",", ], ); die "Error: ", $response1->status_line unless $response1->is_success;
Can some one help me as to why I am getting this error.
Thanks for your Help in advance.

In reply to 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.