The purpose of PUT is to update a resource. You may not expect GET to have side effects, if it does it's irrelevant to the client. If the server state varies, use POST.

Like how you say REST purists... :-)

Op 1 apr. 2014 08:46 schreef "Ihe Onwuka" <ihe.onwuka@gmail.com>:
On Mon, Mar 31, 2014 at 9:26 PM, Joe Wicentowski <joewiz@gmail.com> wrote:
> Hi Ihe,
>
>>     http:send-request(<http:request href="{$href}" method="get"/>)
> ...
>> One last thing. I experienced repeated eXist crashes when running
>> this.
>
> Check to make sure you're closing your HTTP connection.  See
> http://markmail.org/message/3opzcgyzv6auevkt for the solution; the
> whole thread is edifying though.
>

Will investigate - thanks.

A couple of dilemmas both related.

The return type of the function freebaseCall is string..... would it
be helpful to specify that given that it has a side-effect (HTTP Put)

One for the RESTFUL purists that might object to a GET that has
side-effects. What HTTP method should be used to invoke this XQuery?

On reflection the function could probably use a better name.

------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open