Below I have two '$request->as_string()' each identical and yet from different sources:
outputs:my $f = HTTP::Request::Form->new($forms[0], $wosURL); my $boo = $f->press("General Search"); print $boo->as_string;
and this onePOST 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
outputs: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();
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.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
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |