nul
23-09-2005, 16:38
Anfaenglich sei gesagt, dass ich vor gestern noch nichts in Perl geschrieben habe, und nun zu meinem Problem:
Ich moechte mich ueber die Konsole auf einer Internetseite (https/loginformular anmelden). Mein Versuch schaub bisnoch so aus:
#!/opt/local/bin/perl -w
use LWP::UserAgent;
my $URL = 'https://plug-inn.uibk.ac.at/login.php';
my $user = '';
my $pwd = '';
my $ua = new LWP::UserAgent;
my $response = $ua->post( $URL,
{ pluginnname => $user, pluginnpwd => $pwd, } );
my $content = $response->content;
print $content;
Das <form></form> (wenn das wichtig ist) heisst pluginnval, kann mir jemand einen Tipp geben bzw. eine Seite wo sowas was ich vorhabe beschrieben ist?
mfg
Ich moechte mich ueber die Konsole auf einer Internetseite (https/loginformular anmelden). Mein Versuch schaub bisnoch so aus:
#!/opt/local/bin/perl -w
use LWP::UserAgent;
my $URL = 'https://plug-inn.uibk.ac.at/login.php';
my $user = '';
my $pwd = '';
my $ua = new LWP::UserAgent;
my $response = $ua->post( $URL,
{ pluginnname => $user, pluginnpwd => $pwd, } );
my $content = $response->content;
print $content;
Das <form></form> (wenn das wichtig ist) heisst pluginnval, kann mir jemand einen Tipp geben bzw. eine Seite wo sowas was ich vorhabe beschrieben ist?
mfg