Your skill will accomplish
what the force of many cannot
REST::Client does not provide any outputby slayedbylucifer (Scribe)
|on Jun 17, 2013 at 08:33 UTC||Need Help??|
slayedbylucifer has asked for the
wisdom of the Perl Monks concerning the following question:
I am working with REST::Client. I just want to login to a REST interface and get the authentication token.
Here is my curl command:
And here is the curl output:
I have removed my company specific info from above output. Anyway, the command works fine which means I have the information that is needed to get the authentication token.
I am trying to achieve the same via perl code.
Here is my code:
Now my script does not print anything. It exits with nothing being printed on the screen. Also, if I change the password to the wrong one, it still exits without printing anything. I suspect the “POST” line in my code is not right but I cannot correct it. I tried various different combination of POST statement but none worked.
Could you tell me what am I missing here? It should at least print some error message when I provide wrong password but it is not doing so either.