📄 rfc1341.ps
字号:
3120(\256rst)X3307(de\256ned)X3628(in)X3741(RFC)X3960(1049.)X720 3616(RFC)N929(1049)X1149(Content-types)X1717(used)X1921(a)X1992(simpler)X2309(and)X2476(less)X2648(powerful)X3023(syntax,)X3326(but)X3477(one)X3644(that)X3817(is)X3908(largely)X720 3728(compatible)N1173(with)X1368(the)X1510(mechanism)X1973(given)X2211(here.)X720 3952(The)N896(Content-Type)X1481(header)X1764(\256eld)X1961(is)X2051(used)X2253(to)X2354(specify)X2659(the)X2804(nature)X3072(of)X3179(the)X3324(data)X3512(in)X3614(the)X3759(body)X3978(of)X4085(an)X720 4064(entity,)N990(by)X1112(giving)X1384(type)X1576(and)X1741(subtype)X2065(identi\256ers,)X2499(and)X2663(by)X2784(providing)X3183(auxiliary)X3551(information)X4031(that)X720 4176(may)N917(be)X1039(required)X1391(for)X1534(certain)X1829(types.)X2136(After)X2371(the)X2521(type)X2719(and)X2890(subtype)X3221(names,)X3523(the)X3673(remainder)X4096(of)X720 4288(the)N877(header)X1173(\256eld)X1383(is)X1486(simply)X1787(a)X1869(set)X2015(of)X2133(parameters,)X2618(speci\256ed)X2998(in)X3111(an)X3240 0.2455(attribute/value)AX3836(notation.)X720 4400(The)N923(set)X1083(of)X1216(meaningful)X1708(parameters)X2184(differs)X2488(for)X2653(the)X2824(different)X3209(types.)X3513(The)X3716(ordering)X4096(of)X720 4512(parameters)N1172(is)X2 f1265(not)X1 f1417(signi\256cant.)X1895(Among)X2212(the)X2359(de\256ned)X2671(parameters)X3123(is)X3216(a)X3287("charset")X3666(parameter)X4080(by)X720 4624(which)N993(the)X1149(character)X1541(set)X1686(used)X1900(in)X2013(the)X2169(body)X2399(may)X2603(be)X2732(declared.)X3145(Comments)X3600(are)X3757(allowed)X4101(in)X720 4736(accordance)N1178(with)X1373(RFC)X1578(822)X1746(rules)X1957(for)X2093(structured)X2502(header)X2783(\256elds.)X720 4960(In)N830(general,)X1168(the)X1316(top-level)X1690(Content-Type)X2256(is)X2351(used)X2558(to)X2664(declare)X2974(the)X3123(general)X3438(type)X3635(of)X3746(data,)X3962(while)X720 5072(the)N876(subtype)X1213(speci\256es)X1582(a)X1663(speci\256c)X1995(format)X2290(for)X2440(that)X2623(type)X2827(of)X2945(data.)X3191(Thus,)X3444(a)X3524(Content-Type)X4096(of)X720 5184("image/xyz")N1225(is)X1314(enough)X1622(to)X1722(tell)X1871(a)X1939(user)X2124(agent)X2358(that)X2528(the)X2671(data)X2857(is)X2946(an)X3062(image,)X3347(even)X3554(if)X3638(the)X3781(user)X3967(agent)X720 5296(has)N875(no)X998(knowledge)X1447(of)X1554(the)X1699(speci\256c)X2020(image)X2283(format)X2567("xyz".)X2859(Such)X3078(information)X3560(can)X3721(be)X3838(used,)X4064(for)X720 5408(example,)N1108(to)X1220(decide)X1509(whether)X1856(or)X1973(not)X2134(to)X2247(show)X2487(a)X2568(user)X2766(the)X2922(raw)X3104(data)X3303(from)X3528(an)X3657(unrecognized)X720 5520(subtype)N1048(--)X1141(such)X1346(an)X1466(action)X1731(might)X1985(be)X2105(reasonable)X2546(for)X2686(unrecognized)X3233(subtypes)X3597(of)X3705(text,)X3902(but)X4053(not)X720 5632(for)N872(unrecognized)X1431(subtypes)X1807(of)X1927(image)X2204(or)X2325(audio.)X2628(For)X2802(this)X2982(reason,)X3298(registered)X3719(subtypes)X4096(of)X720 5744(audio,)N983(image,)X1268(text,)X1462(and)X1626(video,)X1889(should)X2170(not)X2318(contain)X2627(embedded)X3048(information)X3528(that)X3697(is)X3785(really)X4029(of)X4133(a)X720 5856(different)N1095(type.)X1352(Such)X1587(compound)X2036(types)X2283(should)X2583(be)X2718(represented)X3206(using)X3458(the)X3620("multipart")X4096(or)X720 6160(Borenstein)N1161(&)X1260(Freed)X3853([Page)X4096(5])X6 p%%Page: 6 712 s 12 xH 0 xS 1 f720 400(RFC)N925(1341)X1545(MIME:)X1857(Multipurpose)X2399(Internet)X2723(Mail)X2929(Extensions)X3784(June)X3984(1992)X720 688("application")N1251(types.)X720 912(Parameters)N1189(are)X1348(modi\256ers)X1752(of)X1873(the)X2032(content-subtype,)X2713(and)X2894(do)X3032(not)X3197(fundamentally)X3796(affect)X4058(the)X720 1024(requirements)N1273(of)X1403(the)X1571(host)X1781(system.)X2146(Although)X2559(most)X2796(parameters)X3269(make)X3528(sense)X3785(only)X4005(with)X720 1136(certain)N1030(content-types,)X1620(others)X1902(are)X2067("global")X2433(in)X2555(the)X2720(sense)X2975(that)X3167(they)X3380(might)X3652(apply)X3914(to)X4037(any)X720 1248(subtype.)N1081(For)X1252(example,)X1641(the)X1797("boundary")X2276(parameter)X2700(makes)X2984(sense)X3230(only)X3439(for)X3589(the)X3744("multipart")X720 1360(content-type,)N1250(but)X1397(the)X1539("charset")X1914(parameter)X2324(might)X2573(make)X2806(sense)X3038(with)X3233(several)X3530(content-types.)X720 1584(An)N867(initial)X1123(set)X1260(of)X1370(seven)X1619(Content-Types)X2221(is)X2315(de\256ned)X2628(by)X2754(this)X2923(document.)X3382(This)X3584(set)X3722(of)X3833(top-level)X720 1696(names)N993(is)X1084(intended)X1443(to)X1545(be)X1663(substantially)X2177(complete.)X2606(It)X2692(is)X2783(expected)X3153(that)X3325(additions)X3705(to)X3807(the)X3951(larger)X720 1808(set)N855(of)X963(supported)X1370(types)X1601(can)X1763(generally)X2150(be)X2269(accomplished)X2827(by)X2951(the)X3097(creation)X3436(of)X3544(new)X3732(subtypes)X4096(of)X720 1920(these)N968(initial)X1243(types.)X1543(In)X1672(the)X1839(future,)X2142(more)X2389(top-level)X2781(types)X3033(may)X3248(be)X3388(de\256ned)X3720(only)X3940(by)X4085(an)X720 2032(extension)N1113(to)X1212(this)X1375(standard.)X1773(If)X1861(another)X2174(primary)X2503(type)X2693(is)X2781(to)X2880(be)X2995(used)X3195(for)X3331(any)X3494(reason,)X3794(it)X3873(must)X4085(be)X720 2144(given)N984(a)X1076(name)X1334(starting)X1672(with)X1892("X-")X2120(to)X2244(indicate)X2599(its)X2739(non-standard)X3290(status)X3558(and)X3746(to)X3870(avoid)X4133(a)X720 2256(potential)N1082(con\257ict)X1395(with)X1590(a)X1657(future)X1911(of\256cial)X2208(name.)X720 2480(In)N828(the)X974(Extended)X1366(BNF)X1580(notation)X1924(of)X2033(RFC)X2243(822,)X2440(a)X2512(Content-Type)X3076(header)X3362(\256eld)X3562(value)X3800(is)X3893(de\256ned)X720 2592(as)N824(follows:)X7 f10 s720 2816(Content-Type)N1344(:=)X1488(type)X1728("/")X1920(subtype)X2304(*[";")X2592(parameter])X720 3040(type)N960(:=)X1392("application")X2160(/)X2256("audio")X1296 3136(/)N1392("image")X2160(/)X2256("message")X1296 3232(/)N1392("multipart")X2160(/)X2256("text")X1296 3328(/)N1392("video")X2160(/)X2256(x-token)X720 3520(x-token)N1104(:=)X1248(<The)X1488(two)X1680(characters)X2208("X-")X2448(followed,)X2928(with)X3168(no)X1296 3616(intervening)N1872(white)X2160(space,)X2496(by)X2640(any)X2832(token>)X720 3808(subtype)N1104(:=)X1248(token)X720 4000(parameter)N1200(:=)X1344(attribute)X1824("=")X2016(value)X720 4192(attribute)N1200(:=)X1344(token)X720 4384(value)N1008(:=)X1152(token)X1440(/)X1536(quoted-string)X720 4576(token)N1008(:=)X1152(1*<any)X1488(CHAR)X1728(except)X2064(SPACE,)X2400(CTLs,)X2688(or)X2832(tspecials>)X720 4768(tspecials)N1200(:=)X1392("\(")X1584(/)X1680("\)")X1872(/)X1968("<")X2160(/)X2256(">")X2448(/)X2544("@")X2784(;)X2880(Must)X3120(be)X3264(in)X1248 4864(/)N1392(",")X1584(/)X1680(";")X1872(/)X1968(":")X2160(/)X2256("\\")X2448(/)X2544(<">)X2784(;)X2880(quoted-string,)X1248 4960(/)N1392("/")X1584(/)X1680("[")X1872(/)X1968("]")X2160(/)X2256("?")X2448(/)X2544(".")X2784(;)X2880(to)X3024(use)X3216(within)X1248 5056(/)N1392("=")X2784(;)X2880(parameter)X3360(values)X1 f12 s720 5248(Note)N934(that)X1106(the)X1251(de\256nition)X1647(of)X1754("tspecials")X2191(is)X2282(the)X2427(same)X2653(as)X2761(the)X2907(RFC)X3116(822)X3288(de\256nition)X3685(of)X3793("specials")X720 5360(with)N915(the)X1057(addition)X1397(of)X1501(the)X1643(three)X1860(characters)X2275("/",)X2428("?",)X2597(and)X2760("=".)X720 5584(Note)N931(also)X1110(that)X1279(a)X1346(subtype)X1669(speci\256cation)X2180(is)X2268(MANDATORY.)X2962(There)X3211(are)X3353(no)X3473(default)X3765(subtypes.)X720 6160(Borenstein)N1161(&)X1260(Freed)X3853([Page)X4096(6])X7 p%%Page: 7 812 s 12 xH 0 xS 1 f720 400(RFC)N925(1341)X1545(MIME:)X1857(Multipurpose)X2399(Internet)X2723(Mail)X2929(Extensions)X3784(June)X3984(1992)X720 688(The)N909(type,)X1138(subtype,)X1500(and)X1678(parameter)X2104(names)X2390(are)X2548(not)X2711(case)X2917(sensitive.)X3342(For)X3515(example,)X3906(TEXT,)X720 800(Text,)N963(and)X1144(TeXt)X1384(are)X1544(all)X1683(equivalent.)X2175(Parameter)X2608(values)X2896(are)X3055(normally)X3444(case)X3651(sensitive,)X4053(but)X720 912(certain)N1013(parameters)X1466(are)X1614(interpreted)X2062(to)X2167(be)X2288(case-insensitive,)X2953(depending)X3385(on)X3512(the)X3661(intended)X4024(use.)X720 1024(\(For)N953(example,)X1372(multipart)X1794(boundaries)X2284(are)X2470(case-sensitive,)X3097(but)X3288(the)X3474("access-type")X4064(for)X720 1136(message/External-body)N1648(is)X1736(not)X1883(case-sensitive.\))X720 1360(Beyond)N1051(this)X1222(syntax,)X1529(the)X1679(only)X1882(constraint)X2294(on)X2422(the)X2572(de\256nition)X2974(of)X3087(subtype)X3419(names)X3698(is)X3795(the)X3946(desire)X720 1472(that)N898(their)X1108(uses)X1306(must)X1526(not)X1682(con\257ict.)X2052(That)X2262(is,)X2383(it)X2470(would)X2743(be)X2867(undesirable)X3344(to)X3452(have)X3667(two)X3844(different)X720 1584(communities)N1266(using)X1522("Content-Type:)X2171(application/foobar")X2965(to)X3088(mean)X3345(two)X3537(different)X3917(things.)X720 1696(The)N904(process)X1225(of)X1338(de\256ning)X1686(new)X1879(content-subtypes,)X2588(then,)X2811(is)X2908(not)X3064(intended)X3429(to)X3537(be)X3661(a)X3737(mechanism)X720 1808(for)N861(imposing)X1248(restrictions,)X1729(but)X1881(simply)X2173(a)X2246(mechanism)X2715(for)X2857(publicizing)X3321(the)X3469(usages.)X3779(There)X4034(are,)X720 1920(therefore,)N1116(two)X1284(acceptable)X1716(mechanisms)X2216(for)X2352(de\256ning)X2691(new)X2875(Content-Type)X3434(subtypes:)X1008 2144(1.)N1134(Private)X1438(values)X1715(\(starting)X2067(with)X2269("X-"\))X2511(may)X2708(be)X2830(de\256ned)X3144(bilaterally)X3567(between)X1296 2256(two)N1550(cooperating)X2115(agents)X2470(without)X2873(outside)X3260(registration)X3808(or)X1296 2368(standardization.)N1008 2592(2.)N1162(New)X1401(standard)X1786(values)X3 f2091(must)X1 f2352(be)X2502(documented,)X3056(registered)X3495(with,)X3749(and)X1296 2704(approved)N1686(by)X1814(IANA,)X2109(as)X2220(described)X2620(in)X2726(Appendix)X3136(F.)X3268(Where)X3556(intended)X1296 2816(for)N1438(public)X1709(use,)X1891(the)X2039(formats)X2363(they)X2559(refer)X2772(to)X2878(must)X3096(also)X3282(be)X3404(de\256ned)X3718(by)X3845(a)X1296 2928(published)N1694(speci\256cation,)X2229(and)X2392(possibly)X2736(offered)X3038(for)X3174(standardization.)X720 3152(The)N915(seven)X1179(standard)X1551(initial)X1823(prede\256ned)X2275(Content-Types)X2893(are)X3057(detailed)X3409(in)X3530(the)X3694(bulk)X3911(of)X4037(this)X720 3264(document.)N1172(They)X1394(are:)X3 f1008 3488(text)N1 f1224(--)X1373(textual)X1697(information.)X2261(The)X2472(primary)X2838(subtype,)X3222("plain",)X3578(indicates)X3983(plain)X1296 3600(\(unformatted\))N1890(text.)X2166(No)X2341(special)X2667(software)X3056(is)X3178(required)X3557(to)X3690(get)X3866(the)X4042(full)X1296 3712(meaning)N1667(of)X1787(the)X1945(text,)X
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -