To test HTTP Post web services for edit action, I tried something like; curl -X POST -H "Content-Type: text/xml" -T local-file.xml http://127.0.0.1/myproject/edit/1.xml
The problem is I do not know how local-file.xml should look like as there is no documentation that I can find on this aspect. Is there any sample xml file that someone here can show? Thank you very much. On Tuesday, September 11, 2012 6:35:55 PM UTC+8, Lightee wrote: > > Dear Cakephp gurus, > > I managed to get web services for view and index working by following the > instructions at the link below. > > http://book.cakephp.org/2.0/en/development/rest.html > > View and index are easy because it uses HTTP GET. For edit and delete > which uses HTTP POST, I am at a loss. I do not know how the URL will look > like in the first place to edit certain data fields. Can someone advise or > provide some useful link? Thank you very much. > > > On Thursday, July 26, 2012 6:31:16 PM UTC+8, Lightee wrote: >> >> Dear CakePHP experts, >> >> I am thinking of creating an Android app to talk to CakePHP server app. >> Sorry for my amateur questions because I am still a newbie. Is there >> anything extra I need to do on the CakePHP side? Are web services the way >> to go? Can the Android talk to MySql database directly and pull out data? >> >> Thank you. >> > -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
