in reply to Re: http post
in thread http post
thanks hippo thanks 1nickt. 1nickt method has worked for me
use strict; use warnings; use HTTP::Tiny; my $ua = HTTP::Tiny->new; my $url = "https://www.website.com/api/v1/sms/send"; my $data = { apiKey => "edftr44456", from => "demo", to => "447777777777", message => "demo HTTP API", }; my $params = $ua->www_form_urlencode( $data ); my $response = $ua->get( $url . '/?' . $params ); print $response->{'status'} . "\n";
i will use HTTP::Tiny
|
|---|