Thanks for the replies
I don't think i was that clear.
To use the API i have to login (username and password) using a browser to the url ( blah.com) and then (in chrome) show the cookies and look for the one called AUTH_TOKEN and then have use that token in the curl command. I am trying to find a way to grab that token so i can use it in my perl