467,113 Members | 1,313 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,113 developers. It's quick & easy.

gmail

how to access to gmail with user and password ,i write something but it not work

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. use CGI;
  4. use LWP::UserAgent;
  5. use strict;
  6.  
  7.   print "Content-type: text/html\n\n";
  8.  
  9.   # Create a new user agent for HTTP request
  10.   my $ua = LWP::UserAgent->new( );
  11.  
  12.  my $URL = 'https://www.google.com/accounts/ServiceLoginAuth?service=mail'
  13.  
  14.  # Create HTTP request object
  15.   my $req =  HTTP::Request->new( POST => $URL);
  16.  
  17.  # Authenticate the user
  18.   $req->authorization_basic( $user, $pass);
  19.  
  20.  
Nov 6 '08 #1
  • viewed: 1491
Share:
1 Reply
numberwhun
Expert Mod 2GB
What are you trying to do, send emails? Have you tried this module from CPAN?
Nov 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Sam Huang | last post: by
21 posts views Thread by thomson | last post: by
7 posts views Thread by julian_m | last post: by
1 post views Thread by ClickList@gmail.com | last post: by
4 posts views Thread by cybervigilante | last post: by
4 posts views Thread by gregpinero@gmail.com | last post: by
9 posts views Thread by mmm | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.