Clojure => (resourceful / post " http://ptchan.org/pttest.php " {} {: foo "bar": baz "/tmp/bak.jpg"}) {: body-seq ("Array" " ("" [foo] => bar "" [baz] => /tmp/bak.jpg "") "): code 200 ,: msg" OK ",: method" POST ",: headers {: date ( "Fri, Oct 02, 2009 11:41:15 GMT") ,: various ("Accept-Encoding") ,: content length ("53") ,: connection ("close" ") ,: content-type (" text / html "): server (" Apache / 2.2.9 (Debian) PHP / 5.2.6-1 + lenny3 with Suhosin-Patch "): x-powered by by (" PHP / 5.2.6-1 + lenny3 ")} ,: get-header # ,: cookies nil ,: url" http://ptchan.org/pttest.php "}
Clojure => (resourcefully / post " http://ptchan.org/pttest.php " {} {: foo "bar": baz (File. "/Tmp/bak.jpg")}) {: body-seq ( "Array" "(" "[foo] => bar" "[baz] => /tmp/bak.jpg" ")") ,: code 200 ,: msg "OK" ,: method "POST" ,: headers {: date ("Fri, 02 Oct 2009 11:41:30 GMT"),: various ("Accept-Encoding") ,: content length ("53") ,: connection ("close" "),: content- type ("text / html") ,: server ("Apache / 2.2.9 (Debian) PHP / 5.2.6-1 + lenny3 with Suhosin-Patch"): x-powered by by ("PHP / 5.2.6 -1 + lenny3 ")} ,: get-header # ,: cookies nil ,: url" http://ptchan.org/pttest.php "}
Clojure = > (resourcefully/post " http://ptchan.org/pttest.php" {} {: foo "bar": baz (FileInputStream. "/tmp/bak.jpg" )}) {: body-seq ( "Array" "(" "[foo] = > bar" "[baz] = > java.io.FileInputStream@320f6398" ")" ),: 200,: msg "OK",: "POST",: headers {: date ( "Fri, 02 Oct 2009 11:41:47 GMT" ),: ( "Accept-Encoding" ),: content-length ( "73" ),: connection (" close "),: content-type (" text/html "),: server (" Apache/2.2.9 (Debian) PHP/5.2.6-1 + lenny3 Suhosin-Patch "),: x-powered by by ( "PHP/5.2.6-1 + lenny3" )},: get-header #,: cookies nil,: url " http://ptchan.org/pttest.php" }
, . ? !