html stranka pres https

Ondrej Koala Vacha koala na fi.muni.cz
Pondělí Únor 25 15:43:25 MET 2002


Dobry den,

poterbuji drobnou radu, jak stahnout v perlu stranku z www.ebanka.cz
k dalsimu parsovani. Priznam se, ze s www mam malo spolecne tak, i v 
perlu, a i toto je ma singularita, nebot www/htmp/http lezi mimo muj akcni radius.

Zatim jsem nasel a neuspesne vyzkousel:

 use LWP::UserAgent;
  $ua = LWP::UserAgent->new;
  $ua->agent("MyApp/0.1 ");

#use LWP;
  # Create a request
  my $req = HTTP::Request->new(POST => 'https://klient2.ebanka.cz...sttype=HTML');
  $req->content_type('application/x-www-form-urlencoded');
  $req->content('match=www&errors=0');

  # Pass request to the user agent and get a response back
  my $res = $ua->request($req);

  # Check the outcome of the response
  if ($res->is_success) {
      print $res->content;
  } else {
      print "Bad luck this time\n";
  }


s diky

-- 
Ondrej Koala Vacha



Další informace o konferenci Perl