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

Hi all,

How do you send the authorization through (in the form of a username and password) in a GET request when using REST::Client? I am doing something simple like this:

perl -MREST::Client -E 'say REST::Client->new->GET(shift)->responseContent' ${URL}

It seems to me like there is a simple solution but it escapes me at the moment :(


Smoothie, smoothie, hundre prosent naturlig!
  • Comment on How to send authorization in GET request using REST::Client?

Replies are listed 'Best First'.
Re: How to send authorization in GET request using REST::Client?
by Anonymous Monk on Aug 18, 2011 at 21:07 UTC
    According to REST::Client , it only supports certificate/key or pkcs12/pkcs12password, so to get some kind of username/password option, you would have to subclass REST::Client
      Thank you.


      Smoothie, smoothie, hundre prosent naturlig!