Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/HTTP/Common-Lisp/http-1.lisp
Normal file
5
Task/HTTP/Common-Lisp/http-1.lisp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(defun wget-clisp (url)
|
||||
(ext:with-http-input (stream url)
|
||||
(loop for line = (read-line stream nil nil)
|
||||
while line
|
||||
do (format t "~a~%" line))))
|
||||
10
Task/HTTP/Common-Lisp/http-2.lisp
Normal file
10
Task/HTTP/Common-Lisp/http-2.lisp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(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 out)
|
||||
finally (close body)))
|
||||
1
Task/HTTP/Common-Lisp/http-3.lisp
Normal file
1
Task/HTTP/Common-Lisp/http-3.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(format t "~a~%" (nth-value 0 (dex:get "http://www.w3.org/")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue