REST API for SWI-Prolog
Wouter Beek <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CAE1un7O3PJbcVPHC3ivPMH8nmqhsUPnoyWJi=2KP3g6u2O64aA@mail.gmail.com> |
Hi all, Yesterday I wanted to implement a RESTfull Web service and wanted to use SWI-Prolog for that (since it has a very nice HTTP library). I found out that the support for REST is not complete. Only the GET and POST methods of the HTTP 1.1 specification seem to be fully supported (but not DELETE, PUT, ...). For instance http_parameters/[2,3] has extensive support for the POST method, but only uses the search terms for other HTTP methods. This seems to be intentional since the related documentation section is called: "3.9 Get parameters from HTML forms". Form submission uses GET/POST, however forms are not the only / most important way of sending HTTP requests in a modern Ajax environment. So my questions are: - Was I looking in the work spot? / Are there other libraries, etc.? - Does anybody have experience with Ajax and/or REST programming in SWI-Prolog and is s/he willing to interchange ideas and/or code? - Would it be a worthwhile effort to extend the existing HTTP library? --- Cheers!, Wouter. E-mail: [email protected] WWW: www.wouterbeek.com Tel.: 0647674624 -------------- next part -------------- HTML attachment scrubbed and removed