5 Einträge, 1 Seite |
1 2 3 4 5 6
use LWP; $url = 'xx'; $ua = LWP::UserAgent->new(); $form = $ua->get($url) or die "Couldn't fetch $url"; $form->is_success() or die $form->message(); print $form->content();
<form name="LoginUserForm" method="post" action="/jow/order/dispatch/login.do;jsessionid=D9F0083DED4D516B7A58A3F2DB301B5F.prxapp01a">
ArexX+2007-12-01 19:00:03--
Wie komme ich an diese ID ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use LWP; use HTML::Parser; $url = 'xx'; $ua = LWP::UserAgent->new(); $form = $ua->get($url) or die "Couldn't fetch $url"; $form->is_success() or die $form->message(); print $form->content(); my $session = ""; my $parser = HTML::Parser->new; $parser->handler(start => \&start_handler,"tagname,attr,self"); $parser->parse( $form->content ); print $session; sub start_handler{ my ($tag,$attr,$self) = @_; return unless $tag eq 'form'; my $action = $attr->{action}; ($session) = $action =~ /jsessionid=(.*)/; }
5 Einträge, 1 Seite |