10 minutes ago, Norman Ramsey wrote: > I'd like to set up a web site with links that cause the server to > deliver Racket source code. Receiving such could would cause the > web server to launch DrRacket. I believe the right mechanism to use > here is a MIME type ('Content-Type:' header in the HTTP protocol). > > My question is whether there is an existing MIME type used for > describing Racket source files and if installing the Racket system > tells local web browsers about this type---or if I will have to > figure out for myself how to configure this behavior?
On my servers I used to add "plt" to the list of filename suffixes in mime.types, but after a while I switched to adding an "application/plt-scheme-package plt" line. AFAIK, it doesn't matter which one you use as long as you use some "application/". You might also need to deal with browser/os silliness like Windows trying to guess things too much, and effects of obscure headers like "Content-Disposition". -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! ____________________ Racket Users list: http://lists.racket-lang.org/users