Re: Sonderzeichen bei content-disposition

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"itworks@xxxxxxx" schrieb:

<http://www.fh-flensburg.de/wt/usenet/Hinweise_fuer_Google-Poster.txt>,
Punkt 9. Du glaubst gar nicht, wie albern das aussieht.

http://groups.google.de/group/microsoft.public.de.german.entwickler.dotnet.asp/browse_thread/thread/da37b4e3afcfcad3/e557bac22e5b5357?lnk=gst&q=%22attachment%3B+filename%22&rnum=9#e557bac22e5b5357

Mit
<http://schneegans.de/web/kanonische-adressen/short-google-groups-urls.exe>
kannst du daraus ganz bequem
"http://google.com/groups?selm=OfdZocu0DHA.2680%40TK2MSFTNGP11.phx.gbl";
machen, vgl.
<http://schneegans.de/web/kanonische-adressen/#kurze-urls-usenet>.

Nun, bei mir kommt als Dateiname beim obigen Beispiel im IE
"CA93HF6Q", bei Opera "=.txt", nur unter Firefox klappt es.

HTTP kennt offiziell keinen "Content-Disposition"-Header, und RFC 2616
bezieht sich lediglich auf RFC 1806, was aber "Content-Disposition
filenames to US-ASCII" limitiert, vgl.
<http://www.ietf.org/rfc/rfc1806.txt> und
<http://www.ietf.org/rfc/rfc2616.txt>. Es gibt also keine klare
Spezifikation, und jeder Browser macht es halt so, wie er es für richtig
hält.

Ich sehe auch nicht, wie <http://www.ietf.org/rfc/rfc2047.txt> hier helfen
sollte. Dort heißt es ziemlich eindeutig, daß ein "encoded-word" in einem
Parameter des "Content-Disposition"-Headers nicht zulässig ist.

Du wirst also die Nicht-ASCII-Zeichen irgendwie loswerden müssen. Bei
Umlauten und "ß" geht das ja ziemlich einfach.

--
<http://schneegans.de/sv/> - XML Schema Validator |
<http://schneegans.de/xp/> - XHTML Proxy |
<http://myblog.de/politicallyincorrect> - Mein Lieblings-Blog |
.



Relevant Pages

  • Re: [PHP] Problems with Zip+IE6
    ... I would even say you're bound to hit a browser configured for some ... original HTTP RFC spec. ... Content-Disposition Issues: ... RFC 1806, from which the often implemented Content-Disposition ...
    (php.general)
  • Re: [PHP] IE, Word documents and Content Types
    ... when I view the $_FILES 'type' of a word document in Internet ... the allegedly MS-originated Content-Disposition header). ... original HTTP RFC spec. ... HTTP/1.1 uses many of the constructs defined for Internet Mail (RFC ...
    (php.general)
  • Re: [PHP] Problems with Zip+IE6
    ... That works for me with IE 6/7 and other browsers. ... Content-Disposition Issues: ... RFC 1806, from which the often implemented Content-Disposition ... If this header is used in a response with the application/octet- ...
    (php.general)