my $mech = WWW::Mechanize->new(); $mech->cookie_jar(HTTP::Cookies->new()); $mech->get($url); $mech->field("id", $username); $mech->field("password", $password); $mech->click(); $mech->set_fields( identifier => [ 'xyzzzzz' ] , ConfirmationEmail => [ 'email@id.com' ] , tmpto => [ '13222222222222' ] , # pdfcreate=> [filename=> "UserAgent_Beschreibung.pdf", # 'Content-Type' => 'application/pdf'], ); print $mech->content(); $mech->submit_form();