dakrone/clj-http — Issue #12: Better error messages for bad requests
Author: kevinburke
Created: 2011-10-17 01:21:26+00:00
State: open

When I'm debugging a request that's getting a 400 Bad Request header, or a 401 Authorization Required from the server, it's really helpful to actually be able to read the response body, or view the headers being sent to the server, so I can debug what's wrong with the query. I know clj-http is a wrapper on top of an Apache library, but I can't figure out how to get the response body on a 400 bad request through the clj-http interface.

I'd appreciate some help; I'm new to Clojure, I've never used this library before and a similar POST request using curl is working fine.