Welcome! Log In Create A New Profile

Advanced
Re: view diff is broken?
avatarNovember 14, 2012 01:09PM
Chris, I think the solution is very simple.
You just need to make sure that the HTTP header sent in the response from the server states the proper MIME type for LDRAW files. The element you need to send back to the client is
the "Content-Type" field in the HTTP response header.
The user can then associate a tool with that MIME type.
As "LDRAW" is of course not part of the official MIME standard, we need to use the "x-" prefix for unofficial file types.
Probably
application/x-ldraw
or
model/x-ldraw
would be something good IMHO.
Alternatively, you could make the URL "appear" as an *.ldr file (instead of *.cgi), so users might,
alternatively to the MIME type, use their normal file associations for opening the result file.
Since the result - as far as I can see - is a mix of both the old and the new version of the file,
probably either *.mpd or *.ldr would be a good file extension to pick; not *.dat

Edited 1 time(s). Last edit at 2012-11-14 02:10PM by Steffen.
SubjectAuthorViewsPosted
view diff is broken? Matthew W. Noel671November 12, 2012 03:00PM
Re: view diff is broken? Steffen252November 12, 2012 03:41PM
Re: view diff is broken? Matthew W. Noel261November 12, 2012 08:42PM
Re: view diff is broken? Chris Dee234November 12, 2012 10:49PM
Re: view diff is broken? Michael Heidemann207November 13, 2012 09:17AM
Re: view diff is broken? Steffen254November 14, 2012 01:09PM
Re: view diff is broken? Chris Dee253November 14, 2012 02:48PM
Re: view diff is broken? Chris Dee230November 14, 2012 03:15PM
Re: view diff is broken? Steffen242November 14, 2012 04:43PM
Re: view diff is broken? Michael Heidemann209November 16, 2012 01:19PM
Re: view diff is broken? Steffen247November 16, 2012 05:06PM
Re: view diff is broken? Michael Heidemann279November 17, 2012 02:01AM
Re: view diff is broken? Michael Heidemann429November 17, 2012 02:04AM
Re: view diff is broken? Michael Heidemann205November 13, 2012 09:09AM
Re: view diff is broken? Matthew W. Noel221November 13, 2012 06:16PM



Sorry, only registered users may post in this forum.

Click here to login