[drakma-devel] Drakma : Problem saving file
Edi Weitz
edi at agharta.de
Mon Dec 18 08:22:26 UTC 2006
On Wed, 6 Dec 2006 11:51:03 +0100 (CET), lam at tuxfamily.org wrote:
> (multiple-value-bind (body-stream status-code headers uri
> stream must-close)
> (drakma:http-request
> "http://stats-dev.lam/cgi-bin/view_image.cgi?filename=/tmp/sms_5Avkjm.png"
> :want-stream t)
> (declare (ignore headers uri stream must-close))
BTW, you can just write
(multiple-value-bind (body-stream status-code)
(drakma:http-request ...)
here and leave out the DECLARE
So, I tried your example with this URL
http://zappa.agharta.de/test.html
which (although it says ".html") servers a JPEG image with chunked
encoding, i.e. without a Content-Length header. Works fine for me
with LWW 5.0. Let me know if it works for you.
Cheers,
Edi.
More information about the Drakma-devel
mailing list