CodeIgniter Forums
CodeIgniter REST client library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CodeIgniter REST client library (/showthread.php?tid=23763)



CodeIgniter REST client library - El Forum - 10-21-2009

[eluser]Phil Sturgeon[/eluser]
To go along with my REST server implementation for CodeIgniter I made a REST client library.

It was started a while back as I made the two at the same time, I just never got around to finishing it as all the work I was doing was REST service based and none of it needed CodeIgniter to make the requests.

Have a look at the test's here and let me know what you think. More work and examples will be done when im back from EECI2009.


CodeIgniter REST client library - El Forum - 06-01-2010

[eluser]cgeisel[/eluser]
Hi Phil,

I've been using your REST client (http://philsturgeon.co.uk/restclient/index.php/test) to test a REST server I've set up using your excellent libraries & tutorial, specifically to test POSTing to the server.

When I use your client to POST, I get the following error:

Code:
=============================================
Request
https://scrapit.ca/restserver/index.php/example_api/users
=============================================
Responce
No responce
=============================================
Errors
Code: 77
Message: error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none
=============================================
Call details

Array
(
)

PHP Result

A useable PHP array or object for use in your code.

array(1) {
  [0]=>
  bool(false)
}

That's when I noticed that while I can send GET requests using my browser, I get the same error when sending GET requests using your test client. I was wondering if you could shed some light on Error Code 77, and whether the problem is with my server or with your test client.


CodeIgniter REST client library - El Forum - 06-02-2010

[eluser]cgeisel[/eluser]
This appears to be an issue with the test client at philsturgeon.co.uk. I set up a copy of Phil's excellent REST client on my dev server and have been able to make both GET and POST requests to my server.

Thanks again for some great libraries.