Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/HTTPS/Common-Lisp/https-1.lisp
Normal file
13
Task/HTTPS/Common-Lisp/https-1.lisp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
(defun wget-drakma-string (url &optional (out *standard-output*))
|
||||
"Grab the body as a string, and write it to out."
|
||||
(write-string (drakma:http-request url) out))
|
||||
|
||||
(defun wget-drakma-stream (url &optional (out *standard-output*))
|
||||
"Grab the body as a stream, and write it to out."
|
||||
(loop with body = (drakma:http-request url :want-stream t)
|
||||
for line = (read-line body nil nil)
|
||||
while line do (write-line line)
|
||||
finally (close body)))
|
||||
|
||||
;; Use
|
||||
(wget-drakma-stream "https://sourceforge.net")
|
||||
Loading…
Add table
Add a link
Reference in a new issue