From: Ihe O. <ihe...@gm...> - 2014-04-13 05:53:50
|
The wiki has been updated. The sample code now closes the HTTP connection following a PUT (thanks to Joe Wiz for pointing this out) but it does not stop the crashes - this may be an issue specific to eXist. Thanks to Dan M for organising the layout of the update. He had final editorial say so so if there are any mistakes please blame him. http://en.wikibooks.org/w/index.php?title=XQuery/Freebase&stable=0#Using_Cursors_to_Get_Additional_Data On Tue, Apr 1, 2014 at 10:14 AM, W.S. Hager <ws...@gm...> wrote: > 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...@gm...>: >> >> On Mon, Mar 31, 2014 at 9:26 PM, Joe Wicentowski <jo...@gm...> 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 >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open |