clj-http
clj-http copied to clipboard
An idiomatic clojure http client wrapping the apache client. Officially supported version.
Recently i had a problem that some cookies were coming from the server with the attribute **domain** being null, i.e: `Set-Cookie: foo=bar;domain=;expires=Wed, 21 Oct 2021 07:28:00 GMT;` This results in...
I'm getting an HttpClient warning "Invalid expires attribute". I found the following post in stackOverflow that describes the problem and solution. https://stackoverflow.com/questions/36473478/fixing-httpclient-warning-invalid-expires-attribute-using-fluent-api/40697322 I'm not familiar enough with Clojure and clj-http...
```clojure ;; Having a connection manage like this (def cm (conn-mgr/make-reusable-conn-manager {:timeout 100 :threads 10 :default-per-route 10 :keystore "keystore.jks" :keystore-pass "pass"})) (defn make-req [] (for [_ (range 100)] (http/post url...
Fixes #309 `:uri` is now the url-encoded full url as discussed in the issue. It is being run through the java.net.URI constructor after being url-encoded since the URI class implements...
According to what was discussed on https://github.com/dakrone/clj-http/issues/563, this Pull Request renames `unexceptional-status` to `exceptional-status` when adding a `:type` to the exception.
The new Apache 5.0 client is out now for alpha/beta, I should experiment with upgrading (on 4.x branch only) since it supports things like HTTP 2.0
Hey guys, I was looking through the code, and I noticed that [here](https://github.com/dakrone/clj-http/blob/3.x/src/clj_http/client.clj#L240) we're naming the keyword `unexceptional-status` - shouldn't it be named`exceptional-status` since [`unexceptional-status-for-request?`](https://github.com/dakrone/clj-http/blob/3.x/src/clj_http/client.clj#L236) returned `false` ?
Reasoning --------- The Apache HTTP Client documentation has this to say about the DEFAULT cookie spec: "This policy will be deprecated in favor of the standard (RFC 6265 compliant) implementation...
## error exception message is: General SSLEngine problem Same error with or without ``` :insecure? true :validate-hostnames false ``` I created a truststore following the steps in https://github.com/dakrone/clj-http/blob/master/SSL.org (Idid not...
```Clojure (require '[clj-http.client :as http]) (require '[clj-http.conn-mgr :as conn-mgr]) (http/request {:url "http://hidden-to-local/example" :method :get :connection-manager (conn-mgr/make-socks-proxied-conn-manager "127.0.0.1" 12345)) ;; => UnknownHostException ``` Effectively, the host ip for `hidden-to-local` ends up...