RFC6266 and Content-Disposition
Friday, 2 September 2011
HTTPbis published RFC6266 a little while ago, but the work isn’t finished.
This is the RFC that clarifies how the Content-Disposition header is used in HTTP; in a nutshell, while basic file downloads worked OK, there wasn’t any broad interoperability between browsers for non-ASCII filenames.
Julian Reschke did the hard work of coming up with a test suite to find how how bad things were, filing bugs with browsers (such as here and here), and finally writing the draft that eventually became the RFC. Thanks again, Julian.
Since publication, it’s become apparent that browsers are indeed moving towards better interop. So, the next step was to start to publicise this interop so that people on the content side can take advantage of it.
As a result, we’ve come up with a page giving advice to people who produce Content-Disposition — especially Web frameworks.
There’s also a sample implementation for Node.JS called sweet, so you can see how it should work, and support for checking Content-Disposition in REDbot, so you can confirm that you’re doing it well.
So, if you’re involved in a Web framework, please have a look and publicise this within your community. We’ve already filed a request with Django; if your framework has a tracking URL, please add it to the producer advice wiki page.
3 Comments
Fabien Potencier said:
Sunday, September 4 2011 at 5:39 AM
Mark Nottingham said:
Monday, September 5 2011 at 10:01 AM
https://me.yahoo.com/a/6.1BYnkJtp3MPSVRgoZ1dPaWDPM-#2a256 said:
Wednesday, October 5 2011 at 5:05 AM