Serving a file through HTTP
2002 at weholt.org
Tue Mar 18 14:18:21 CET 2003
I think if you send the HTTP-header 'Content-type' back to the client with
the content "Application/octet-stream". check the HTTP RFC for the correct
syntax. This will force the browser to open a "Save-as"-dialog on the
client. I think.
"Gumuz" <gumuz at looze.net> wrote in message
news:3e770934$0$1129$4d4ebb8e at news.nl.uu.net...
> I recently played with the HTTP & CGIHTTP servers.
> The're great fun and I see plenty of possibilities with them :)
> I was wondering: how can I 'serve' a file through this server to a client,
> so the client(browser) will start a file-download(save-as,blabla)?
More information about the Python-list