aim usr status

Discussion in 'Programming General' started by mu-b, Jun 25, 2009.

aim usr status
  1. Unread #1 - Jun 25, 2009 at 6:43 PM
  2. mu-b
    Joined:
    Jun 24, 2009
    Posts:
    1,353
    Referrals:
    2
    Sythe Gold:
    0

    mu-b War is a Drug
    Banned

    aim usr status

    Code:
    use IO::Socket;
    print "Enter AIM Screen name to check: ";
    $aimscreename = <STDIN>;
    chomp($aimscreename);
    
    $Host = "big.oscar.aol.com";
    $Socket = new IO::Socket::INET(
                                   PeerAddr => $Host,
                                   PeerPort => 80,
                                   Proto => 'tcp',
                                  ) || die "Could not connect $!\n";
    print"Connected.\n";
    print"Getting online status--*\n";
    print $Socket "GET /$aimscreename?on_url=online&off_url=offline HTTP/1.0\n";
    print $Socket "Accept: */*\n";
    print $Socket "Accept-Language: en-us\n";
    print $Socket "Accept-Encoding: gzip , deflate\n";
    print $Socket "User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)\n";
    print $Socket "Host: big.oscar.aol.com\n";
    print $Socket "Connection: Keep-Alive\n\n";
    print "User: $aimscreename is: ";
    
    while($result=<$Socket>)
    {
        @b = split(/:/, $result);
        print $b[1]
    }
    
    tels u the status of a aim user, kind of useless but i was askd 2 write it 4 a friend.
     
  3. Unread #2 - Aug 20, 2009 at 2:05 AM
  4. super_
    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    super_ Member

    aim usr status

    You are so clueless... that code is in perl, this is a C/++ board. Something tells me you lack the intelligence required to write this.
     
< grab processor name | [C#] Sythe's Official Surfpin Generator [SOS-G][FREE] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site