OK, here's the problem

Below I have two '$request->as_string()' each identical and yet from different sources:

my $f = HTTP::Request::Form->new($forms[0], $wosURL); my $boo = $f->press("General Search"); print $boo->as_string;
outputs:
POST http://wos4.isiknowledge.com/CIW.cgi Content-Length: 227 Content-Type: application/x-www-form-urlencoded Func=Search&Form=HomePage&SID=QVhJgArh%40WcAACmJAys&topic=Enter+a+topi +c&editions=H&editions=H&editions=H&Period=Year+Range&week_selection=L +atestWeek&years=2004&start_year=1955&end_year=2004&General+Search.x=2 +&General+Search.y=2
and this one
my $request = POST 'http://wos4.isiknowledge.com/CIW.cgi', [Func => 'Search', Form => 'HomePage', SID => $sid, topic => 'Enter a topic', editions => [qw( D A H )], Period => 'Year Range', week_selection => 'LatestWeek', years => 2004, start_year => 1955, end_year => 2004, 'General Search.x' => 2, 'General Search.y' => 2]; print $request->as_string();
outputs:
POST http://wos4.isiknowledge.com/CIW.cgi Content-Length: 227 Content-Type: application/x-www-form-urlencoded Func=Search&Form=HomePage&SID=QVhJfQrh%40WcAABfkZ3c&topic=Enter+a+topi +c&editions=D&editions=A&editions=H&Period=Year+Range&week_selection=L +atestWeek&years=2004&start_year=1955&end_year=2004&General+Search.x=2 +&General+Search.y=2
Because of the bug in HTTP::Request::Form, when I send the first request, the resulting web-page lists the three same editions, BUT if I send using the request I made on my own, the resulting web-page doesnt list ANY edition.

This tells me there's something different between the request object generated by HTTP::Request::Form, and my own request object, and I'm not sure what it is??

Thanks
Sam

ps I'll check out Mechanize, thanks


In reply to Re^4: Checkboxes with the same name by seaver
in thread Checkboxes with the same name by seaver

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.