added getCurlInfo() function to get curl information of the API calls.