I am trying to write a clojure equivalent of the following python code.
requests.post(url, auth=(username, passwd), data=information)
This is what I came up with.
(client/post url {:basic-auth [username passwd] :form-params information})]
When I try running these with url http://requestb.in/ (A site to test Http Requests) I get the similar information. However, when I try to run the same section of code for an API service, I get 200 with python, but a 400 with clojure.
If I try that with :body information then I get an Exceptionclojure.lang.PersistentArrayMap cannot be cast to [B
What is could possibly be wrong here?
Thanks,
Akash
--
You received this message because you are subscribed to the Google Groups "Clojure Users Group Pune" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-pune+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/clj-pune.
For more options, visit https://groups.google.com/groups/opt_out.