Today I felt some curiosity about:
Thats why I just cloned and set-up autoload.php to start testing this Client.
Here is my code:
But I am having a response with error: HTTP Status 401 - Full authentication is required to access this resource. I just double checked username, password and org, and everything seems right. So testing, for example with:
curl -D- -u username:password -X GET http://report.myserver.com:80/jasperserver-pro/rest/resources
Is responding right, with an XML response of resource descriptors.
Another interesting thing I found debugging (var_dump) function setCurlOpts in RESTRequest.php is that $this->url is:
which responds with a not found status.
I also tried adding some Authorization: Basic to CURLOPT_HTTPHEADER.
But no succesful response is back. By the way, Passing variables by reference is a deprecated issue to worry about? Even if my php 5.5.1-2 is not yelling about it.
Thanks in advance.
The jrs-rest-php-client on github currently has repositoryService and Resource services which are expected to work with the next release of JRS Pro.
You can develop code and test it against the latest trunk build for the community edition if you would like to develop prior to the next release. If you checkout the tag for "lastSuccessfulBuild-trunk" or "lastReviewed-trunk" (stable version) below, you can build the community edition which will support the latest php client.
Link to public SVN: http://anonsvn:email@example.com/svn/repos/jasperserver