Skip to content

Instantly share code, notes, and snippets.

@tomjack

tomjack/code.clj Secret

Created August 24, 2012 07:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tomjack/c5fe830d0471f1afe50f to your computer and use it in GitHub Desktop.
user> (require '[clj-http.client :as http])
nil
user> (http/post "http://localhost:8080" {:body "some test text" :content-type :xml})
; Evaluation aborted.
user>
POST / HTTP/1.1
Content-Type: application/xml; charset=UTF-8
Connection: close
Accept-Encoding: gzip, deflate
Content-Length: 14
Host: localhost:8080
User-Agent: Apache-HttpClient/4.1.3 (java 1.5)
some test text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment