Re: exporting a file from cl-http

Martin Simmons <[email protected]> Tue, 5 Jul 2011 20:24:57 +0100
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
>>>>> On Fri, 24 Jun 2011 19:11:13 -0400, Mark Klein said:
> 
> I'd like to provide a button in a cl-http generated web page that creates a
> text file and then downloads it to the user's desktop. How can I do that? I
> have no problem creating a file within a response function, I just don't
> know how to tell the browser to download that file to the user's
> machine. Any suggestions?

Maybe you can adapt the article below, using the content-disposition header?

http://stackoverflow.com/questions/186867/what-content-type-to-force-download-of-text-response

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl