Http-Post

(http-post url mime body) -> http-response

Establishes a HTTP connection using the given URL, posts the body passed to it along with the mime type. Returns an http-response object.

>> (http-post "http://www.ephemeralsecurity.com/non-existent"
     "application/x-www-form-urlencoded" "&test=foobar")
:: [http-response [vector null 200 "OK" [dict ... ... ... ... ... ... ... ...]
     "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE\n html PUBLIC \">
     -//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/
     xhtml1-strict.dtd\">\n<html\n  xmlns=\"http://www.w3.org/1999/xhtml\"\n
     xml:lang=\"en\"><head>\n<title>Test Application</title>\n <link\n rel=
     \"stylesheet\"\n href=\"style.css\"\n type=\"text/css\" />

[rest of response omitted for brevity]

    #f [primitive input]]]