That works, thanks. It's a bit weird because I did try just http encoding the parameters before. But I obviously encoded the wrong characters, or maybe used the wrong character encoding. Hmmm.
Thanks :) On Fri, Jun 18, 2010 at 11:24 AM, Michael Wood <esiot...@gmail.com> wrote: > On 18 June 2010 14:53, Timothy Washington <twash...@gmail.com> wrote: > > Hmm, this is a good idea and I got the GET request string as... > > > /exist/rest/rootDir/system.main.system/aauthentication.main.authentication/users.aauth.users/user.one/user.one?_wrap=no&_query=declare > > default element namespace 'com/interrupt/bookkeeping/users';//user[ > > @id='one'] > > This exact URI (behind http://localhost:8080) works when used by the > > browser, or wget.[...] > > But spaces etc. are not valid as part of a URI. They need to be escaped. > > What happens if you try this hard-coded URL: > > > http://localhost:8080/exist/rest/rootDir/system.main.system/aauthentication.main.authentication/users.aauth.users/user.one/user.one?_wrap=no&_query=declare%20default%20element%20namespace%20%27com/interrupt/bookkeeping/users%27%3B//user%5B%40id%3D%27one%27%5D > > Try that in the browser, wget and also your Clojure program. It might > also help to get a simple CGI script or something that can extract the > _wrap and _query parameters from the query string and just print or > log them so you can compare what you get from the browser and wget and > your program. > > -- > Michael Wood <esiot...@gmail.com> > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en