Date post: | 05-Apr-2015 |
Category: |
Documents |
Upload: | wim-bolland |
View: | 110 times |
Download: | 3 times |
Multimedia - Datenformate
Robert Kämpf HRZ, TU Darmstadt
Kaempf(at)hrz.tu-darmstadt.dehttp://www.tu-darmstadt.de/hrz/media
MIME
Multipurpose Internet Mail Extensions
Inhalt
• ASCII - E-Mail • Zeichensätze• Binärdaten• Multimedia-Mail zu Fuß• MIME - E-Mail• WWW und MIME
E-Mail historisch
• Mitte 80er Jahre• E-Mail (Textmitteilung)
z.B. auf Großrechnern• Rechner A zu Rechner B• Protokolle
– SNA, DECNET, X25– BITNET, EARN– Programme der Hersteller
z.B. VMS-Mail
A B
E-Mail und IP (Internet)
• E-Mail Transport von A nach B SMTP (Simple Mail Transfer Protokoll) RFC 821
• E-Mail Format für formale Angaben(Absender, Empfänger, Datum, etc)RFC 822
• einheitliche Festlegung für das Internet,über Länder- und Systemgrenzen.
• Klassische Post gibt Größen auch vor: Anschrift, Länderkennung, Postleitzahl
Was ist ein RFC ?
• Request For Comments• Arbeitsgruppen machen Vorschläge
auf Basis von vorhandenen Lösungen.
• Verabschiedung • Entspricht DIN im Internet, aber
– unkomplizierter– praxisnäher– schneller
SMTP RFC 821
• Verbindungsaufbau: Port 25/tcp• Kommandos
– HELO Sender-Hostname– MAIL FROM: Absender – RCPT TO: Empfänger– DATA Start der Datenübertragung– . Ende der
Datenübertragung– QUIT Ende der Verbindung
Mailformat RFC 822• Brief-Kopf (Header)
– From: Absender– To: Empfänger– Date: Datum – Subject: Betreff– CC: Kopien– Reply-To: Antwort-Adresse
• Leerzeile• Brief-Inhalt (Body)• Zeichensatz: ASCII (7-Bit)
SMTP E-Mail (RFC 821/822)
• Weltweite Übertragung von E-Mail • Funktioniert perfekt mit
ASCII-Zeichensatz (englische Texte) • Text ist in Zeilen gegliedert
(Zeilen haben weniger als 998 Zeichen)
• Herstellerunabhängig
Problem 1: Sonderzeichen• Europäische Texte haben Sonderzeichen
Umlaute (ÄäÖöÜüß), Akzente (á,à,â).• ASCII kenne keine Sonderzeichen
• Zwischenlösung:7-Bit ASCII mit Umlauten statt z.B. [ { } ]– nicht international möglich– abhängig vom Hersteller
• Zeichensätze mit Sonderzeichen sind 8-Bit– Übertragung per E-Mail führt zu Verlust
oder Veränderung der Sonderzeichen
Internationale Zeichensätze
• 7-Bit: ASCII• 8-Bit: IBM PC Codepage 850
– DOS– Umlaute, Akzente und Grafiksonderzeichen
• 8-Bit: ISO-8859-1 (ISO Latin 1)– alle Sprachen mit lateinischen Zeichen– genormt– Verbreitet bei UNIX-Workstations (Linux!)– Auch bei Mircosoft - ab Windows 95
Zwei Zeichensätze bei Microsoft auf einem System:Speichern als Text: DOS-Text / Windows-Text
7-Bit: ASCIIASCII 0? 1? 2? 3? 4? 5? 6? 7? 8? 9? A? B? C? D? E? F?
?0 0 @ P ` p?1 ! 1 A Q a q?2 " 2 B R b r?3 # 3 C S c s?4 $ 4 D T d t?5 % 5 E U e u?6 & 6 F V f v?7 ' 7 G W g w?8 ( 8 H X h x?9 ) 9 I Y i y?A * : J Z j z?B + ; K [ k {?C , < L \ l |?D - = M ] m }?E . > N ^ n ~?F / ? O _ o
8-Bit: IBM PC (Codepage 850)
850 0? 1? 2? 3? 4? 5? 6? 7? 8? 9? A? B? C? D? E? F?
?0 0 @ P ` p Ç É á _ Ó -?1 ! 1 A Q a q ü æ í _ ß ±?2 " 2 B R b r é Æ ó Ê Ô =?3 # 3 C S c s â ô ú Ë Ò _?4 $ 4 D T d t ä ö ñ È õ ¶?5 % 5 E U e u à ò Ñ Á _ Õ §?6 & 6 F V f v å û ª Â ã Í m ¸?7 ' 7 G W g w ç ù º À Ã Î _ ¸?8 ( 8 H X h x ê ÿ ¿ © Ï _ °?9 ) 9 I Y i y ë Ö ® Ú ··?A * : J Z j z è Ü Û ·?B + ; K [ k { ï ø _ Ù _?C , < L \ l | î £ _ _ _?D - = M ] m } ì Ø ¡ ¢ _ _ _?E . > N ^ n ~ Ä _ « ¥ Ì ¯?F / ? O _ o Å ƒ » € ´
8Bit: ISO 8859-1 (ISO Latin 1)
8859-1 0? 1? 2? 3? 4? 5? 6? 7? 8? 9? A? B? C? D? E? F?
?0 0 @ P ` p € _ ° À _ à _?1 ! 1 A Q a q _ ‘ ¡ ± Á Ñ á ñ?2 " 2 B R b r ‚ ’ ¢ _ Â Ò â ò?3 # 3 C S c s ƒ “ £ _ Ã Ó ã ó?4 $ 4 D T d t „ ” € ´ Ä Ô ä ô?5 % 5 E U e u … • ¥ µ Å Õ å õ?6 & 6 F V f v † – _ ¶ Æ Ö æ ö?7 ' 7 G W g w ‡ — § · Ç _ ç ÷?8 ( 8 H X h x ˆ ˜ ¨ ¸ È Ø è ø?9 ) 9 I Y i y ‰ ™ © _ É Ù é ù?A * : J Z j z _ _ ª º Ê Ú ê ú?B + ; K [ k { ‹ › « » Ë Û ë û?C , < L \ l | Œ œ ¬ _ Ì Ü ì ü?D - = M ] m } _ _ _ _ Í _ í _?E . > N ^ n ~ _ _ ® _ Î _ î _?F / ? O _ o _ Ÿ ¯ ¿ Ï ß ï ÿ
Problem 2: Binäre Daten
Binäre Daten kommen überall vor: • Dokumente aus Textprogrammen
– Textinformationen und– Formatierungsinformationen !!!
• Bilddateien, Audiodateien, Mediendateien
• Programme
Standard 7-Bit ASCII Mail geht nicht !!!
Aus- oder Umwege zu 7-Bit
Problem 1: Sonderzeichen• Texte werden mit umschriebenen
Umlauten als 7-Bit ASCII verschickt: Ae, Oe, Ue, ae, oe, ue und ss
• Andere Sonderzeichen sind schwieriger
Problem 2: Binärdateien• Binäre Dateien werden vor dem
Verschicken in das ACSII-Format konvertiert.
Multimedia-E-Mail zu Fuß• Encoding: Umwandlung von 8-Bit in 7-Bit ASCII
• Hex-Ersetzungstabelle:– Byte: 8-Bit
– Hex-Ziffer: 4-Bit – zwei Hex-Ziffern 2 x 4-Bit– 16 Hex-ASCII-Ziffern
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F– doppelter Speicherplatz
• optimierte Umwandlung: 3 in 4– Hex nutzt 4 Bit, 16 ASCII-Zeichen– 6 Bit entsprechen 64 ASCII-Zeichen 3 x 8 = 4 x
6– Speicherplatz nimmt nur um 1/3 zu
1010 0101A 3
0100 0001 0011 0011
uuencode
• 3x8-Bit aufteilenin 4x6-Bit • 6-Bit in ASCII umwandeln (+32d, ASCII
Space)• „begin“-Zeile mit Dateinamen• Zähler + 60 Zeichen/Zeile (45 Bytes)• leere Zeile und „end“-Zeilebegin 644 text.isoM2&%L;&\@4F]B97)T("$@"@I*971Z="!G<OS?92!I8V@@1&EC:"!M:70@=FEEM;&5N('-C:/9N96XL('/\WV5N(%5M;&%U=&5N+"`*<V\@9&'?($1U(&IE='ITM(&%U8V@@<75O=&5D+7!R:6YT86)L92!Z96EG96X@:V%N;G-T+B`*"EIU;2!4J97-T.B#$UMP@Y/;\(-\@/2`*"E9I96P@4W!AWPI2;V)E<G0@2^1M<&8*`end
86 6 6 6
88
reine ASCII Datei
Multimedia-Mail zu Fuß - Sender
• Umwandeln der binären Multimedia-Datei in ASCII
• Mail an Empfänger schreiben (ASCII)
Folgende Informationen dem Empfänger geben:
1 Ausgangsformat: z.B. Wordstar
2 Umwandlungsverfahren/Format: z.B. uuencode
3 Dateiname (falls nicht in Umwandlung enthalten)
4 Trennlinie (-----schnipp-----8<-------)
• Einfügen der umgewandelten Datei als ASCII-Text
in die Mail mit dem ganz normalen Text-Editor
Multimedia-Mail zu Fuß - Empfänger• Empfangen und Lesen der Mail
• Merken der Informationen des Senders zur Datei• Editieren der E-Mail zum Abspeichern des
Teils der E-Mail mit der ASCII-Datei
• Rückverwandeln der ASCII-Datei in eine binäre Datei mit dem zum Encoding passenden Decoder
• Problem: uuencode ist kein Standard– verschiedene Versionen
– „Nachbearbeiten“ der Datei teilweise notwendig
• Starten des zur Datei passenden Programms(Textverarbeitung, Bildbetrachter, ...)
Multimedia zu Fuß - geht´s ?Informations- und Datenaustausch querdurchs Internet ist möglich:
Multimedia zu Fuß funktioniert !!!
Aber: aufwendig und kompliziert !
Vergleich zu Papier: Man muß wissen, wie Papier, Tinte, und Umschlag hergestellt werden...
MIME: E-Mail lernt Multimedia• Multipurpose Internet Mail Extension
RFC 2045 - 2049 • kompatibel zu Text-E-Mail RFC 821/822
• Internationale Zeichensätze (8Bit und mehr)• Transfer von binären Dateien (Anlagen)• Mehrere Dateien pro E-Mail (multipart)• Speicherung des Texts einer E-Mail in
alternativen Formaten
MIME E-Mail Erweiterungen
Altes RFC 822 E-Mail Format bleibt,Erweiterung durch neue Header-Zeilen:
• MIME-Version: 1.0– Kennzeichnung als MIME - E-Mail
• Content-Type: Media-Type/Sub-Type– Art der Daten, die in E-Mail enthalten sind.
– grobe Einteilung: Media-Type
– genaue Angabe: Sub-Type
E-Mail Erweiterungen
• Content-Transfer-Encoding– 7-Bit ASCII-Text E-Mail-System ist Basis
– 8-Bit Dateien werden in ASCII gepackt,Encoding sagt, wie das passiert ist
• Encodings gemäß RFC:– Quoted-Printable ähnlich Ae oder “A
– Base64 ähnlich uuencode
E-Mail Erweiterungen
• Content-Description– Kommentarzeile zu Mediendatei
• Content-DispositionErweiterung zu MIME (RFC 2183)– Anhang als Teil der E-Mail darstellen (inline)
– Anhang als Datei behandeln (attachment)
– Default-Dateiname für Datei mitschicken
E-Mail Erweiterungen
• Argumente zu den jeweiligen Sub-Types– in Headerzeile nach Semikolon
– in der Form Argument=Wert
– Beispiel: Content-Type: text/plain ; charset=ISO-8859-1
• Normung der MIME-Types– offizielle Subtypes werden gemäß RFC vergeben
– inoffizielle Subtypes beginnen mit x-
Content-Type• Media-Type
– text Texte– image Bilder– audio Töne– video Filme– application Daten– multipart mehrere
Dateien
– message E-Mail inE-
• Sub-Type– plain, html,
richtext– gif, jpeg, tiff– x-wav, basic– msvideo,mpeg– pdf– mixed, alternative
Content-Transfer-Encoding
• 7bit Data 998 Zeichen/ZeileUS-ASCII
• 8bit Data 998 Zeichen/Zeile 8Bit (z.B. ISO-8859-1)
• Quoted-Printable für Texte brauchbar• Base64 für binäre Dateien
• Binary Data 8Bit Übertragung ! nicht bei E-Mail
Quoted-Printable
• Sonderzeichen als ´=´ und HEX-Ziffer schreiben
• übliche ASCII-Zeichen als ASCII-Zeichen• Leerzeichen, Tab sind normale Zeichen• Wenn Leerzeichen am Ende, dann als =20
oder: Soft-Umbruch und Leerzeile• Zeilenumbruch als CRLF bleibt• Maximale Zeilenlänge: 76 Zeichen
Soft-Umbruch: ´=´ am Zeilenende
Base64
• Ähnlich uuencode• 3 Bytes (24Bit) liefern 4 x 6 Bit• 6 Bit in ein ASCII-Zeichen packen• Ersetzungstabelle -
keine Rechenvorschrift wie bei uuencode• 76 Zeichen (57 Bytes) pro Zeile• Keine Verzierungen (Header, Zähler, etc)
Base64 EncodingValue Encoding Value Encoding Value Encoding Value Encoding
0 A 17 R 34 i 51 z 1 B 18 S 35 j 52 0 2 C 19 T 36 k 53 1 3 D 20 U 37 l 54 2 4 E 21 V 38 m 55 3 5 F 22 W 39 n 56 4 6 G 23 X 40 o 57 5 7 H 24 Y 41 p 58 6 8 I 25 Z 42 q 59 7 9 J 26 a 43 r 60 8 10 K 27 b 44 s 61 9 11 L 28 c 45 t 62 + 12 M 29 d 46 u 63 / 13 N 30 e 47 v 14 O 31 f 48 w (pad) = 15 P 32 g 49 x 16 Q 33 h 50 y
Jetzt grüße ich Dich mit vielen schönen, süßen Umlauten, so daß Du jetzt auch quoted-printable zeigen kannst. Zum Test: ÄÖÜ äöü ß =
Text - ISO 8859-1 177 Bytes
Text - deutsche Umlaute 192 Bytes
Text - TeX Umlaute 192 Bytes
Jetzt gruesse ich Dich mit vielen schoenen, suessen Umlauten, so dass Du jetzt auch quoted-printable zeigen kannst. Zum Test: AeOeUe aeoeue ss =
Jetzt gr"u"se ich Dich mit vielen sch"onen, s"u"sen Umlauten, so da"s Du jetzt auch quoted-printable zeigen kannst. Zum Test: "A"O"U "a"o"u "s =
Text-Datei
Jetzt gr=FC=DFe ich Dich mit vielen sch=F6nen, s=FC=DFen Umlauten, =
so da=DF Du jetzt auch quoted-printable zeigen kannst. =
Zum Test: =C4=D6=DC =E4=F6=FC =DF =3D =
Text - Quted-Printable 217 Bytes
Text - Base64 240 BytesSGFsbG8gUm9iZXJ0ICEgCgpKZXR6dCBncvzfZSBpY2ggRGljaCBtaXQgdmllbGVuIHNjaPZuZW4sIHP832VuIFVtbGF1dGVuLCAKc28gZGHfIER1IGpldHp0IGF1Y2ggcXVvdGVkLXByaW50YWJsZSB6ZWlnZW4ga2FubnN0LiAKClp1bSBUZXN0OiDE1twg5Pb8IN8gPSAKClZpZWwgU3Bh3wpSb2JlcnQgS+RtcGYK
Text-Datei
Bild - GIF 201 Bytes
Bild - HEX 701 Bytes000000 47 49 46 38 37 61 64 00 64 00 80 00 00 00 00 00000010 ff ff ff 2c 00 00 00 00 64 00 64 00 00 02 a8 8c000020 8f a9 cb ed 0f a3 9c b4 da 8b b3 de bc fb 0f 86000030 e2 48 96 e6 89 a6 ea ca b6 ee 0b c7 f2 4c d7 f6000040 8d e7 fa ce f7 fe 0f 0c 0a 87 c4 a2 f1 98 03 28000050 97 cc a6 b3 89 8c 4a a7 d4 aa f5 8a cd 6a b7 dc000060 2e e9 09 0e 2b ad e2 32 b4 6a 4e 03 c8 ea 32 bb000070 1d 7e c3 9f f2 f9 99 6a 07 d7 f3 63 34 ff 3e f5000080 07 28 25 c8 b4 c7 77 98 97 68 b7 38 d7 08 f7 d8000090 16 a9 36 99 56 69 e6 95 a9 b9 c9 d9 e9 f9 09 1a0000a0 2a 3a aa 51 e8 44 8a 9a aa ba ca da ea fa 0a 1b0000b0 2b 3b 4b 5b 6b 7b 8b 9b ab bb cb db eb fb 0b 1c0000c0 2c 3c 4c 5c 2c 54 00 00 3b
100 x 100 Pixel
Bild-Datei
Bild - uuencode 303 Bytes
Bild - Base64 272 Bytes
begin 644 bild.gifM1TE&.#=A9`!D`(```````/___RP`````9`!D```"J(R/J<OM#Z.<M-J+L]Z\M^P^&XDB6YHFFZLJV[@O'\DS7]HWG^L[W_@\,"H?$HO&8`RB7S*:SB8Q*I]2JM]8K-:K?<+ND)#BNMXC*T:DX#R.HRNQU^PY_R^9EJ!]?S8S3_/O4'*"7(M,=WMF)=HMSC7"/?8%JDVF59IYI6IN<G9Z?D)&BHZJE'H1(J:JKK*VNKZ"ALK.TM;5:WN+FZN[R]OK^PL<+#Q,7"Q4```[`end
R0lGODdhZABkAIAAAAAAAP///ywAAAAAZABkAAACqIyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGYAyiXzKaziYxKp9Sq9YrNarfcLukJDiut4jK0ak4DyOoyux1+w5/y+ZlqB9fzYzT/PvUHKCXItMd3mJdotzjXCPfYFqk2mVZp5pWpucnZ6fkJGio6qlHoRIqaqrrK2ur6ChsrO0tba3uLm6u7y9vr+wscLDxMXCxUAAA7
Bild-Datei
Bild - Quoted-Printable 503 BytesGIF87ad=00d=00=80=00=00=00=00=00=FF=FF=FF,=00=00=00=00d=00d=00=00=02=A8=8C==8F=A9=CB=ED=0F=A3=9C=B4=DA=8B=B3=DE=BC=FB=0F=86=E2H=96=E6=89=A6=EA=CA=B6==EE=0B=C7=F2L=D7=F6=8D=E7=FA=CE=F7=FE=0F=0C=87=C4=A2=F1=98=03(=97=CC=A6=B3=89=8CJ=A7=D4=AA=F5=8A=CDj=B7=DC.=E9 =0E+=AD==E22=B4jN=03=C8=EA2=BB=1D~=C3=9F=F2=F9=99j=07=D7=F3c4=FF>=F5=07(%=C8=B4=C7=w=98=97h=B78=D7=08=F7=D8=16=A96=99Vi=E6=95=A9=B9=C9=D9=E9=F9 =1A*:=AAQ=E8=D=8A=9A=AA=BA=CA=DA=EA=FA=1B+;K[k{=8B=9B=AB=BB=CB=DB=EB=FB=0B=1C,<L\,T=00=00;=
Bild-Datei
Content-Type: Multipart
multipart/mixed• mehrere Dokumente in einer E-Mail
– Text und Media-Datei– Text und mehrere Media-Dateien
• Argument: boundary=„eindeutiger String“
multipart/alternative• alternative Darstellungen des Inhalts• „höhere“ Qualität am Ende
Return-Path: kaempf (at) irx1.hrz.tu-darmstadt.deReceived: from irx1.hrz.tu-darmstadt.de (irx1.hrz.tu-darmstadt.de ... Received: (from kaempf@localhost) by irx1.hrz.tu-darmstadt.de Date: Fri, 12 Nov 1999 17:05:24 +0100 (CET)From: kaempf (at) hrzPUB.tu-darmstadt.de (Robert Kaempf)Message-Id: <[email protected]>To: kaempf (at) irx1.hrz.tu-darmstadt.deSubject: E-Mail fuer Dich
Hallo Robert ! Das hier ist eine E-Mail, die ich Dir einfach so schicke, damitDu mal eine ganz normale E-Mail im US-ASCII Format zeigen kannst.
Es gibt aber auch Umlaute: Ae, Oe, Ue, ae, oe, ue, ss
Gruesse Robert Kaempf
mail.us-ascii
From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.DE>Subject: ISO-8859-1 MailTo: kaempf (at) hrz.tu-darmstadt.DE (Robert Kaempf)Date: Fri, 12 Nov 1999 17:09:37 +0100 (CET)X-Mailer: ELM [version 2.4ME+ PL25 (25)]MIME-Version: 1.0Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable
Hallo Robert !=20
Jetzt gr=FC=DFe ich Dich mit vielen sch=F6nen, s=FC=DFen Umlauten,=20so da=DF Du jetzt auch quoted-printable zeigen kannst.=20
Zum Test: =C4=D6=DC =E4=F6=FC =DF =3D=20
Viel Spa=DFRobert K=E4mpf
mail.quoted-printable
From: Robert Kaempf <kaempf(at) hrz.tu-darmstadt.DE>Subject: Text und BildTo: kaempf (at) hrz.tu-darmstadt.DE (Robert Kaempf)Date: Fri, 12 Nov 1999 17:14:53 +0100 (CET)MIME-Version: 1.0Content-Type: multipart/mixed; boundary=ELM942423292-21211-0_Content-Transfer-Encoding: 7bit
--ELM942423292-21211-0_Content-Type: text/plain; charset=US-ASCIIContent-Transfer-Encoding: 7bit
Hallo Robert
Hier ein GIF-Bild !
Gruesse Robert
--ELM942423292-21211-0_Content-Type: image/gifContent-Disposition: attachment; filename=bild.gifContent-Description: op_sem99/bild.gifContent-Transfer-Encoding: base64
R0lGODdhZABkAIAAAAAAAP///ywAAAAAZABkAAACqIyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGYAyiXzKaziYxKp9Sq9YrNarfcLukJDiut4jK0ak4DyOoyux1+w5/y+ZlqB9fzYzT/PvUHKCXItMd3mJdotzjXCPfYFqk2mVZp5pWpucnZ6fkJGio6qlHoRIqaqrrK2ur6ChsrO0tba3uLm6u7y9vr+wscLDxMXCxUAAA7
--ELM942423292-21211-0_--
mail.multipart.attach
From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.DE>Subject: GIF und ISO-TextTo: kaempf (at) hrz.tu-darmstadt.DE (Robert Kaempf)Date: Fri, 12 Nov 1999 17:16:32 +0100 (CET)MIME-Version: 1.0Content-Type: multipart/mixed; boundary=ELM942423392-21211-1_Content-Transfer-Encoding: 7bit
--ELM942423392-21211-1_Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable
Hallo Robert !=20
Bild und Umlaute=20
Gr=FC=DFe Robert=20
--ELM942423392-21211-1_Content-Type: image/gifContent-Disposition: attachment; filename=bild.gifContent-Description: op_sem99/bild.gifContent-Transfer-Encoding: base64
R0lGODdhZABkAIAAAAAAAP///ywAAAAAZABkAAACqIyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGYAyiXzKaziYxKp9Sq9YrNarfcLukJDiut4jK0ak4DyOoyux1+w5/y+ZlqB9fzYzT/PvUHKCXItMd3mJdotzjXCPfYFqk2mVZp5pWpucnZ6fkJGio6qlHoRIqaqrrK2ur6ChsrO0tba3uLm6u7y9vr+wscLDxMXCxUAAA7
--ELM942423392-21211-1_--
mail.multipart.attach.iso
Date: Fri, 12 Nov 1999 17:33:57 +0100From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.de>X-Mailer: Mozilla 4.61C-SGI [en] MIME-Version: 1.0To: kaempf (at) hrz.tu-darmstadt.deSubject: alternative ?Content-Type: multipart/alternative; boundary="------------763E6433BDE9836C87EABFDE"
--------------763E6433BDE9836C87EABFDEContent-Type: text/plain; charset=us-asciiContent-Transfer-Encoding: 7bit
HTML und TEXT
--------------763E6433BDE9836C87EABFDEContent-Type: text/html; charset=us-asciiContent-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html>
<pre>HTML und TEXT</pre> </html>
--------------763E6433BDE9836C87EABFDE--
mail.multipart.alternative
From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.de>Date: Fri, 12 Nov 1999 17:37:07 +0100X-Mailer: Mozilla 4.61C-SGI [en]MIME-Version: 1.0To: kaempf (at) hrz.tu-darmstadt.deSubject: alternative isoContent-Type: multipart/alternative; boundary="------------2FB0F22FF96724E12CC5C6C2"
--------------2FB0F22FF96724E12CC5C6C2Content-Type: text/plain; charset=iso-8859-1Content-Transfer-Encoding: quoted-printable
HTML und Text mit UmlautenGr=FC=DFe Robert
--------------2FB0F22FF96724E12CC5C6C2Content-Type: text/html; charset=us-asciiContent-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html>HTML und Text mit Umlauten<br>Grüße Robert<br> </html>
--------------2FB0F22FF96724E12CC5C6C2--
mail.multipart.alternative.iso
Date: Fri, 12 Nov 1999 17:39:26 +0100From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.de>X-Mailer: Mozilla 4.61C-SGI [en] MIME-Version: 1.0To: kaempf (at) hrz.tu-darmstadt.deSubject: alternative und mixed ?Content-Type: multipart/mixed; boundary="------------7014DFAE513EED342ED07F3A"
This is a multi-part message in MIME format.--------------7014DFAE513EED342ED07F3AContent-Type: multipart/alternative; boundary="------------350FFAFEE03F8B0006E3BA88"
--------------350FFAFEE03F8B0006E3BA88Content-Type: text/plain; charset=iso-8859-1Content-Transfer-Encoding: quoted-printable
Jetzt mit HTML, Text und einem Bild ?Gr=FC=DFe Robert
--------------350FFAFEE03F8B0006E3BA88Content-Type: text/html; charset=us-asciiContent-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html>Jetzt mit HTML, Text und einem Bild ?<br>Grüße Robert</html>
--------------350FFAFEE03F8B0006E3BA88--
-------------7014DFAE513EED342ED07F3AContent-Type: image/gif; name="bild.gif"Content-Transfer-Encoding: base64Content-Disposition: inline; filename="bild.gif"
R0lGODdhZABkAIAAAAAAAP///ywAAAAAZABkAAACqIyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGYAyiXzKaziYxKp9Sq9YrNarfcLukJDiut4jK0ak4DyOoyux1+w5/y+ZlqB9fzYzT/PvUHKCXItMd3mJdotzjXCPfYFqk2mVZp5pWpucnZ6fkJGio6qlHoRIqaqrrK2ur6ChsrO0tba3uLm6u7y9vr+wscLDxMXCxUAAA7--------------7014DFAE513EED342ED07F3A--
mail.multipart.alternative.mi
xed
Date: Fri, 12 Nov 1999 17:39:26 +0100From: Robert Kaempf <kaempf (at) hrz.tu-darmstadt.de>X-Mailer: Mozilla 4.61C-SGI [en] MIME-Version: 1.0To: kaempf (at) hrz.tu-darmstadt.deSubject: alternative und mixed ?Content-Type: multipart/mixed; boundary="------------7014DFAE513EED342ED07F3A"
This is a multi-part message in MIME format.--------------7014DFAE513EED342ED07F3AContent-Type: multipart/alternative; boundary="------------350FFAFEE03F8B0006E3BA88"
--------------350FFAFEE03F8B0006E3BA88Content-Type: text/plain; charset=iso-8859-1Content-Transfer-Encoding: quoted-printable
Jetzt mit HTML, Text und einem Bild ?Gr=FC=DFe Robert
--------------350FFAFEE03F8B0006E3BA88Content-Type: text/html; charset=us-asciiContent-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html>Jetzt mit HTML, Text und einem Bild ?<br>Grüße Robert</html>
--------------350FFAFEE03F8B0006E3BA88--
-------------7014DFAE513EED342ED07F3AContent-Type: image/gif; name="bild.gif"Content-Transfer-Encoding: base64Content-Disposition: inline; filename="bild.gif"
R0lGODdhZABkAIAAAAAAAP///ywAAAAAZABkAAACqIyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGYAyiXzKaziYxKp9Sq9YrNarfcLukJDiut4jK0ak4DyOoyux1+w5/y+ZlqB9fzYzT/PvUHKCXItMd3mJdotzjXCPfYFqk2mVZp5pWpucnZ6fkJGio6qlHoRIqaqrrK2ur6ChsrO0tba3uLm6u7y9vr+wscLDxMXCxUAAA7--------------7014DFAE513EED342ED07F3A--
Content-Type: multipart/mixed; boundary="------------7014DFAE513EED342ED07F3A"
--------------7014DFAE513EED342ED07F3A--
--------------7014DFAE513EED342ED07F3A
--------------7014DFAE513EED342ED07F3A
Content-Type: multipart/alternative; boundary="------------350FFAFEE03F8B0006E3BA88"--------------350FFAFEE03F8B0006E3BA88
--------------350FFAFEE03F8B0006E3BA88
--------------350FFAFEE03F8B0006E3BA88--
Content-Type: image/gif
Content-Type: text/plain; charset=iso-8859-1
Content-Type: text/html; charset=us-ascii
T
H
mail.multipart.alternative.mi
xed
MIME und WWW• HTTP 1.0: RFC 1945 (1996!)• HTTP 1.1: RFC 2616• nach E-Mail entwickelt, 8-Bit Transfer• kein Encoding, kein Multipart
ABER ab HTTP 1.0:• MIME Content-Type wird benutzt
• Server: Erst MIME-Type, dann Daten
• Client: Anzeige der Daten je nach Typoder Starten von besonderen Programmen
HTTP zu Fuß
• telnet www.tu-darmstadt.de 80GET http://www.tu-darmstadt.de/hrz/o/iso.txt MIME/1.0
• Leerzeile eingeben
HTTP/1.1 200 OKDate: Wed, 17 Nov 1999 20:46:42 GMTServer: Apache/1.3.3 Ben-SSL/1.28 (Unix)Last-Modified: Wed, 17 Nov 1999 20:04:07 GMTContent-Length: 177Connection: closeContent-Type: text/plain
Hallo Robert !
Jetzt grüße ich Dich mit vielen schönen, süßen Umlauten, so daß Du jetzt auch quoted-printable zeigen kannst.
Zum Test: ÄÖÜ äöü ß =
Viel SpaßRobert Kämpf
HTTP zu Fußirx1:/home/kaempf $ telnet www.tu-darmstadt.de 80 Trying 130.83.47.198...Connected to sun25.hrz.tu-darmstadt.de.Escape character is '^]'.GET http://www.tu-darmstadt.de/hrz/o/bild.gif HTTP/1.0
HTTP/1.1 200 OKDate: Wed, 17 Nov 1999 20:52:59 GMTServer: Apache/1.3.3 Ben-SSL/1.28 (Unix)Last-Modified: Wed, 17 Nov 1999 20:04:22 GMTETag: "98af40-c9-38330a46"Accept-Ranges: bytesContent-Length: 201Connection: closeContent-Type: image/gifX-Pad: avoid browser bug
GIF87add€ÿdd¨Œ©Ëí£œ´Ú‹³Þ¼û†âH–扦êʶî çúÎ÷þ ÇòL×ö‡Ä¢ñ˜(—̦³‰ŒJ§ÔªõŠÍj·Ü.é + â2´jNÈê2»~ßòù™j×óc4õ(%È´Çw˜—h·8÷Ø©6™Viæ•©¹ÉÙéù *:ªQèDŠšªºÊÚêú+;K[k{‹›«»ËÛëû ,<L\,T;Connection closed by foreign host.