Bonjour à tous, j'ai un problème en perl, je veux me loguer à un site en utilisant MECHANIZE, le script fonctionne chez un amis sous windows mais pas chez moi sous linux (debian).
Voici le code :
Code :
- #!/usr/bin/perl -w
- use strict;
- use WWW::Mechanize;
- use Data::Dumper;
- #Déclaration des variables
- my $url = 'http://projecthack.projectnews.fr/index.php';
- my $hashcode;
- my $hashcode2;
- my $bot = WWW::Mechanize->new;
- # page de login principale et identification
- $bot->get( $url );
- $bot->form_number(1);
- $bot->set_fields( login => 'psyphi', password => 'jevaispasledonnerici' );
- $bot->submit;
- $bot->get('http://projecthack.projectnews.fr/coding/Parse.php');
|
Voici les erreurs, j'ai fais des recherches sur internet mais je n'ai rien trouvé de concret:
Code :
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/share/perl5/LWP/Protocol.pm line 114.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/share/perl5/LWP/Protocol.pm line 114.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
- Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/HTML/PullParser.pm line 83.
|
Les erreurs ne viennent pas du code mais de perl je crois, mais je ne sais pas comment le configurer.
Merci d'avance pour votre aide.