Using REST API from cURL.
Has anyone got the REST API from cURL working ? I am following the instructions in the wiki here. For all the commands (starting from the one for authentication), I get a result as "the browser not supporting JavaScript". Therefore, when I run cURL from command line for a work item (such as one below), I am still getting the same error about missing JavaScript. The resulting XML is also malformed.
But, when the same URL (as used in cURL) is entered in browser I get a valid XML as output with all details as expected.
I am using cURL on my Linux (Ubuntu) laptop.
curl -k -L -b <COOKIE_PATH> -c <COOKIE_PATH> <HOST>/oslc/workitems/<WORKITEM_NUM>.xml
But, when the same URL (as used in cURL) is entered in browser I get a valid XML as output with all details as expected.
I am using cURL on my Linux (Ubuntu) laptop.
One answer
have a look at this article that might help you with using curl to interact with the REST API https://jazz.net/library/article/194/ the perl scripts provided in the document work for me under 3.1 didn't test it for 4 yet