Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need help!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi here is my code! I'm trying to connect to mtnsms.com to send sms, but my code is not working!!

Could anyone help me?

#!/usr/bin/perl

print "Content-type: text/html\n\n";
use strict;
use LWP::UserAgent;

use HTTP::Request::Common qw(POST);

my $ua = LWP::UserAgent->new();
my $req = POST '[ username => 'username', password => 'password' ];

$ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt", autosave=> 1));

#make new uri
my $loginUri = new URI::URL $loginUrl;

#encode the login details
$loginUri->query_form(username => $username, password => $password);


my $messageReq = POST $messageUrl, [ smsToNumbers => $number,smsMessage => $message];


my $logoutReq = GET $logoutUrl;
 
Please don't just say "help" or "I need help" -- not many people will even bother to read your thread.

I'f you'd said "Sending SMS Messages via mtnsms.com" -- now *that* would be interesting... Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top