Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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")
|
||||
1
Task/HTTPS/Common-Lisp/https-2.lisp
Normal file
1
Task/HTTPS/Common-Lisp/https-2.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(format t "~a~%" (nth-value 0 (dex:get "https://www.w3.org/")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue