[Prev][Next][Index][Thread]

Re: cl-http/client/client.lisp on ACL/SunOS




> I'm trying to get enough of the cl-http loaded to run client.lisp.
> However, I'm beginning to suspect that the function 
> INVOKE-HTTP-SERVICE-ON-HOST may not be ported to ACL.

This is correct.  Here is the ACL Unix implementation-specific
function you can use to implement it.  This code clip is doing just
the simple HTTP GET:

(defun download-url (url)
   (let ((stream  (ipc::open-network-stream
		       :element-type '(unsigned-byte 8)
		       :host (url::host-string url)
		       :port (or (url::host-port url) 80))))
    (format stream "GET ~A~%" (url::relative-name-string url))
    (force-output stream)
    (setf html (read-html-into-string stream))
    (close stream)
    html))

Hope that helps --kelly murray  kem@franz.com


Follow-Ups: References: