On 18 June 2010 23:54, Timothy Washington twash...@gmail.com wrote:
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 :)
No problem :)
--
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
Oh... and the /tmp/out file is empty.
Tim
On Fri, Jun 18, 2010 at 8:53 AM, Timothy Washington twash...@gmail.comwrote:
Hmm, this is a good idea and I got the GET request string as...
That's a good idea which I tried. But no dice. I have a feeling I'm not
handling the response properly in Clojure. See my other posts here.
Tim
On Thu, Jun 17, 2010 at 3:57 PM, RandyHudson randy_hud...@mac.com wrote:
You don't want to encode the whole URL, just the keys and values in
the
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
On Wed, Jun 16, 2010 at 6:21 PM, Timothy Washington twash...@gmail.com wrote:
Hey all, something very weird happens when trying to use the http-agent. If
I execute a) or b) in a browser, I get the desired result XML.
a) http://RESTful/path/to/xml
b)
You don't want to encode the whole URL, just the keys and values in
the query string. Something like this:
(defn encode-params [request-params]
(let [encode #(URLEncoder/encode (str %) UTF-8)
coded (for [[n v] request-params] (str (encode n) = (encode
v)))]
(apply str (interpose
Hey all, something very weird happens when trying to use the http-agent. If
I execute a) or b) in a browser, I get the desired result XML.
a) http://RESTful/path/to/xml
b) http://RESTful/path/to/xml?_wrap=no_query=declare default element
namespace 'com/interrupt/bookkeeping/users';//user[