https - lwp - postini

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Looking for a little help with postini and ezcommand in the postini system.
The code I have is working fine for verifing authentication, but I receive
different responses from a web browser as compared to what I receive with a
perl script.

script is as follows:

use LWP::UserAgent;
use PSTNCrossAuth;

$secret = 'secret';
$auth = new PSTNCrossAuth( $secret );
$user = '';

$authString = $auth->authString( '' );

$address = $auth->checkString( $authString, $secret );

#  $authString =~ s/+/%2B/g;

print "AUTH STRING: $authString\n";
print "ADDRESS: $address\n";

my $ua=LWP::UserAgent->new;
$ua->timeout( 600 );

my $reqobj = $ua->post(
' ?$auth=$authString&cmd=adduser%20$
user' );
if( $ ne 'OK' )
    print "\nerror posting data: $\n";
    exit 1;

my $results = ${ $reqobj };
print $results;
exit 1;

has anyone used ezcommand with perl to update postini?


Site Timeline