I'm trying to connect to a RESTful web service, but I'm having some troubles, especially when sending data over PUT and DELETE. With cURL, PUT requires a file to send, and DELETE is just weird. I'm perfectly capable of writing a client using PHP's socket support and writing the HTTP headers myself, but I wanted to know whether you guys have ever used or seen a REST client for PHP?
+6
A:
I tend to just use PHP's built-in cURL support. The CURLOPT_CUSTOMREQUEST
option allows you to do PUT
/DELETE
etc.
ceejayoz
2009-05-21 18:17:41