Thread WWW::Mechanize: Formular gibt es nicht... (6 answers)
Opened by J-jayz-Z at 2005-08-30 19:46

esskar
 2005-08-31 04:47
#57549 #57549
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use LWP::UserAgent;

my $lwp = new LWP::UserAgent;

$lwp->default_header("Cookie" => "jscript=1");

my $resp = $lwp->post("http://www.expedia.com/pub/agent.dll?qscr=fltw&rfrr=-1066&&zz=" .time() . "&",
{ city1 => 'Frankfurt',
pcity1=> 'Berlin, Germany (BER-All Airports)',
date1 => '09/10/05',
date2 => '11/10/05'
}
);

print $resp->content;


aber du musst wohl alle felder setzen => also auch hidden fields und die checkboxen und so :-(

View full thread WWW::Mechanize: Formular gibt es nicht...