vendredi 9 décembre 2005
Google Talk with perl (bis)
Par Thus0, vendredi 9 décembre 2005 à 09:19 :: perl
Tutorial / Howto / How-to...
perl script to send jabber message to Google Talk / Googletalk Instant Messaging using XMPP protocol and SASL PLAIN authentication. Check that these perl modules are installed :
IO ::Socket ::SSL (>=0.81 ?) XML ::Stream Net ::XMPP Authen ::SASL #!/usr/bin/perl -w
#
# script to send jabber message to Google Talk Instant Messaging
# using XMPP protocol and SASL PLAIN authentication.
#
# author: Thus0 <Thus0@free.fr>
# Copyright (c) 2005, Thus0 (...)
samedi 5 novembre 2005
GoogleTalk with perl
Par Thus0, samedi 5 novembre 2005 à 06:33 :: perl
Tutorial / Howto / How-To...
GTalk.pm is a perl library to send messages to Google Talk instant messaging using XMPP protocol, with SASL PLAIN authentication. It uses XML ::Stream and Net ::XMPP perl modules.
GTalk.pm
updated (2005/09/12) : you don’t need GTalk.pm anymore. You can use Net ::XMPP to send directly Google Talk messages. See my new tutorial : Google Talk with perl (bis)
Examples
Example n°1 : example.pl
example.pl is a perl script which illustrates how to use (...)
vendredi 5 août 2005
Utilisation d’un proxy authentifiant avec perl
Par Thus0, vendredi 5 août 2005 à 18:20 :: perl
Description
Exemple de script perl pour récupérer une page web en utilisant un proxy authentifiant.
lwp_get_env.pl
Code source de lwp_get_env.pl
#!/usr/bin/perl
#
# Récupération d'une page web à travers d'un proxy authentifiant
# Les paramètres du proxy sont passés en variables d'environnement
#
# Filename : lwp_get_env.pl
# Usage : HTTP_PROXY='http://login:password@10.0.0.1:3128/' ./lwp_get_env.pl
#
use strict;
use LWP::UserAgent;
use HTTP::Request;
my $url = (...)