Web¶
Full featured http client¶
(ql:quickload “drakma”)
GET with auth
(require 'drakma)
(setq resp (drakma:http-request "http://www.codekid.net"
:basic-authoization '("user" "password")))
(print resp)
POST
(drakma:http-request "http://some.secure.website/with-login"
:method :post
:parameters '(("username" "hans")
("password" "wurst")))
If you want to read the respone from a stream set
:want-stream t
More examples on http://weitz.de/drakma/#examples
Parsing HTML5¶
(html5-parser:parse-html5 (drakma:http-request "http://www.google.de"))