Re: How do I create a seaside page to respond to a PUT
Johan Brichau <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
David, 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. Johan > On 11 Mar 2017, at 21:27, David Pennington <[email protected]> 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? > David > > Message sent using Winmail Mail Server > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside