in reply to
Re: Call URL
in thread Call URL
so you'd have to check the page sent back for something to indicate success...
It's easier just using LWP::UserAgent.
my $response = LWP::UserAgent->new()->get($smsurl);
die if !$response->is_success;
The get() function will fetch the document identified by the given URL and return it. It returns undef if it fails.
@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;
well, the http request can still "succeed" but not send the sms, so you'll have to forrage in the response body for a The sms was not sent type message...
shiny regexes and rules offered by Perl 6
other CPAN module
by looking at it on my monitor
I print it and I read it in spare time
first I convert it into $FORMAT, then I parse it
I hire someone to do it
using my custom module
I write a brand new language to do the task
on the server where I play as human, XML is forbidden
what is XML?
I speak XML natively
I write a new grammar for Perl 6
some other way
Results (266 votes),