Depending on how close you want to stay to cURL, look either at LWP::UserAgent or at cURL.
Using LWP::UserAgent together with HTTP::Request::Common should be fairly easy to send the messages:
my $ua= LWP::UserAgent->new(); my $res= $ua->post( $url, { username => 'testusergoeshere@gmail.com', +password => 'somecoolpassword' }); $res->dump;
In reply to Re: cURL scripts to monitor an API
by Corion
in thread cURL scripts to monitor an API
by jim.fazzone.5i
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |