in reply to How to pass credentials through REST::Client

Hi Thanos,

I know your question was already answered, but I thought I would suggest you take a look at

The entire Mojolicious project is excellent and worth taking a look.

It's very easy to create REST services with Mojolicious, but the UserAgent is also fantastic and a pleasure to work with.

For example, here are a couple of requests with different auth types. These examples are from the page I linked.

# Quick JSON API request with Basic authentication my $value = $ua->get('')->result +->json; # JSON POST (application/json) with TLS certificate authentication my $tx = $ua->cert('tls.crt')->key('tls.key') ->post('' => json => {top => 'secret'});