Re: Implementing REST service with POST and PUT

2008-08-23 Thread mozart_ar
well, i have some problems with $this-RequestHandler-isXml(). It return true for not REST request. I am using now: (strtolower($this-RequestHandler-prefers()) == 'xml') Regards On 6 ago, 05:02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Try this if ($this-RequestHandler-isXml()

Re: Implementing REST service with POST and PUT

2008-07-02 Thread jimbo
Hi, thanks for the link - I did find it myself also but it could not solve my problem ... however I looked into the RequestHandler code and realized that Content-type that the Googles RESTClient 2.1 (Wiztools.org) is sending when posting XML content is application/ xml; charset=UTF-8 and this is

Implementing REST service with POST and PUT

2008-07-01 Thread jimbo
Hi, I am trying to implement a RESTful web service in Cake 1.2 (RC2) that could receive XML content through HTTP POST and basically add that content as a new row to a db (through a basic simple model) or updating an existing one (HTTP PUT). I have managed to read data from db and pushing that

Re: Implementing REST service with POST and PUT

2008-07-01 Thread Mariano Iglesias
http://c7y.phparch.com/c/entry/1/art,cakephp-rest jimbo wrote: I am trying to implement a RESTful web service in Cake 1.2 (RC2) that could receive XML content through HTTP POST and basically add that content as a new row to a db (through a basic simple model) or updating an existing one