File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ More example requests:
5555
5656; ; If you don't want to follow-redirects automatically:
5757(client/get " http://site.come/redirects-somewhere" {:follow-redirects false })
58+
59+ ; ; Send form params as a urlencoded body
60+ (client/post " http//site.com" {:form-params {:foo " bar" }})
5861```
5962
6063A more general ` request ` function is also available, which is useful
Original file line number Diff line number Diff line change 11* Changelog
22 List of changes that have gone into each release
3+ ** 0.2.1
4+ - decode cookies from response into :cookies (thanks r0man)
5+ - redone redirects, they can now be toggled with {:follow-redirects
6+ false} in the request
7+ - decompression of responses has been fixed (thanks senior)
8+ - accept Content-Encoding or content-encoding from responses
9+ (thanks senior)
10+ - added ability to specify sending a url-encoded :body of form
11+ params using {:form-params {:key value}} (thanks senior)
312** 0.2.0
413 - updated dependencies to be the latest versions
514 - added ability to use system proxy for connections (thanks jou4)
1120* Work log
1221 Log of merges/issues/work that's gone in so I know what to put in
1322 the changelog for the next release
23+ ** 2011-09-23
24+ - merged https://github.com/dakrone/clj-http/pull/7 to accept both
25+ Content-Encoding and content-encoding, since ring uses the
26+ lowercase version
27+ - merged https://github.com/dakrone/clj-http/pull/6 to allow for
28+ sending form params with :form-params as a urlencoded body on
29+ POST requests
1430** 2011-09-22
1531 - merged https://github.com/dakrone/clj-http/pull/5 to fix
1632 decompression
Original file line number Diff line number Diff line change 1- (defproject clj-http " 0.2.1-SNAPSHOT "
1+ (defproject clj-http " 0.2.1"
22 :description " A Clojure HTTP library wrapping the Apache HttpComponents client."
33 :dependencies [[org.clojure/clojure " 1.2.1" ]
44 [org.apache.httpcomponents/httpclient " 4.1.2" ]
You can’t perform that action at this time.
0 commit comments