sylph001 has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I happen to need to access a web service.

It seems I can use curl to make it with following command:

curl -k --incecure --key ./key.pem --cacert ./ca.pem --cert ./client.pem <service_url> -o ./file.dat

 

So my question is, can it possibly be done by perl with some modules?

I have a feeling that lwp::useragent would not be capable of this, so if this is true, how about other modules?

 

Thanks in advance

Replies are listed 'Best First'.
Re: web service with cert
by Anonymous Monk on Apr 26, 2015 at 20:44 UTC

    I have a feeling that lwp::useragent would not be capable of this, so if this is true, how about other modules?

    Try it out, it should work provided you have IO::Socket::SSL and Mozilla::CA