[Seaside] How do I create a seaside page to respond to a PUT
johan at inceptive.be
Tue Mar 14 06:44:27 UTC 2017
Have you taken a look at Seaside-REST ? (http://book.seaside.st/book/advanced/restful <http://book.seaside.st/book/advanced/restful> and https://github.com/SeasideSt/Seaside/wiki/Seaside-REST <https://github.com/SeasideSt/Seaside/wiki/Seaside-REST>)
It seems to me you are trying to use the Seaside page components to implement a REST interface. That is not going to work.
> On 11 Mar 2017, at 21:27, David Pennington <david at totallyobjects.com> wrote:
> Hello everyone.
> I am writing a mobile app that needs to talk back to a server using REST. I have set up Seaside pages that respond to GET requests in the form
> 'http://mydomain.com/MySeasidePage?username:password:dataRequest. This works fine.
> Now, however, I have to start updating the data on the server and I think that I should not use GET to change the data (web crawlers can do bad damage that way). So, my question is, if I formulate a correct PUT request, is there a way to get the Seaside page to respond correctly to it buy taking the data and using it, then sending back an HTML response?
> Message sent using Winmail Mail Server
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside