鍩轰簬WSP/WTP鐨凪MS浼犺緭(3)鈥斺€擬MS PDU缁撴瀯

2016-12-01 10:21:57来源:作者:jccmusi人点击

第七城市

涓?/span> MMS PDU缁撴瀯


MMS PDU锛?span lang="EN-US">Protocol Data Unit锛?span>鍗忚鏁版嵁鍗曞厓锛夌敱MMS澶村拰MMS娑堟伅浣撶粍鎴愶紝MMS澶寸敱澶氫釜鍩熷悕鍜屽煙鍊肩粍鎴愶紝鐢卞鎴风鎸囧畾锛?MMS澶撮噷闈㈢殑涓€浜涘煙鍙互琚?span lang="EN-US">MMS Proxy-Replay淇敼鎴栬ˉ鍏咃紝MMS Proxy-Replay浣跨敤杩欎簺澶村煙淇℃伅鐢熸垚MM閫氱煡浠ュ強鏋勯€犳帴鏀?span lang="EN-US">MM PDU涓殑鐩稿叧澶村煙锛岃繛鍚屾秷鎭疄浣撲竴鍚岄€佸線鎺ユ敹鏂广€傛秷鎭綋璺熷湪MMS澶翠箣鍚庯紝澶у鏁?span lang="EN-US">MMS PDU鍙惈鏈?span lang="EN-US">MMS澶达紝瀹冧滑璧峰埌寤虹珛鍜岀淮鎸侀€氫俊鐨勪綔鐢紝鍙湁鍦?span lang="EN-US">M-Send.req鍜?span lang="EN-US">M-Retrieve.conf PDU涓墠鏈夋秷鎭綋銆?strong>


3.1 MMS Header


MMS PDU鍜?span lang="EN-US">HTTP PDU鏋佷负绫讳技锛屼絾瑕佺畝鍗曚竴浜涖€備竴涓?span lang="EN-US">MMS PDU瀵瑰簲涓€绉嶆秷鎭牸寮忋€備笉鍚岀被鍨嬬殑MMS PDU鏈変笉鍚岀殑MMS Header 銆?span lang="EN-US">MMS Header鏍规嵁WAP-209鍗忚鍜?span lang="EN-US">RFC2387鐨勮瀹氾紝鐢变竴绯诲垪鐨勫煙缁勬垚锛岃繖浜涘煙瀹氫箟浜?span lang="EN-US">PDU鐨勫悇绉嶅睘鎬э紝鍖呮嫭PDU绫诲瀷锛岀増鏈彿锛屾帴鍙楁柟锛屽彂閫佹柟锛屼富棰橈紝鍙戦€佹椂闂寸瓑銆?span lang="EN-US">MMS Header涓殑鍩熷垎涓哄彲閫夐」鍜屽繀閫夐」锛屾牴鎹?span lang="EN-US">PDU鐨勭被鍨嬩笉鍚岃€屼笉鍚屻€?/span>



甯歌鐨?span lang="EN-US">PDU鐨勭被鍨嬫湁锛?span lang="EN-US">


飦?span lang="EN-US"> 鍙戦€佽姹?span lang="EN-US">: M-send.req


飦?span lang="EN-US"> 鍙戦€佺‘璁?span lang="EN-US">: M-send.conf


飦?span lang="EN-US"> 褰╀俊閫氱煡: M-notification.ind


飦?span lang="EN-US"> 閫氱煡鍥炲簲: M-notifyresp.ind


飦?span lang="EN-US"> 鑾峰彇褰╀俊鍥炲簲: M-retrieve.conf


飦?span lang="EN-US"> 鎺ユ敹纭: M-acknowledge.ind


飦?span lang="EN-US"> 褰╀俊鍥炴墽: M-delivery.ind





MMS Header鍚庨潰绔嬪嵆鎺ョ殑灏辨槸Message Body銆傛牴鎹?span lang="EN-US">MMS Body缁勮鐨勬槸鍚︽湁搴忥紙鏄惁鏈変綅缃帶鍒朵俊鎭紝鏈夋樉绀哄厛鍚庨『搴忥級锛?span lang="EN-US">MMS娑堟伅浣撶殑缁勮鏂瑰紡鍒嗕负:


application/vnd.wap.multipart.mixed鏂瑰紡 鎵€鏈夌殑娑堟伅鍐呭娣峰悎鍦ㄤ竴璧凤紝娌℃湁鏃堕棿涓婄殑椤哄簭锛屽唴瀹规€庝箞鏄剧ず鐢卞鎴风鐨勬樉绀烘帶鍒剁瓥鐣ユ潵鍐冲畾銆?/span>application/vnd.wap.multipart.related鏂瑰紡 鍚勬秷鎭唴瀹逛箣闂存湁涓€瀹氬叧绯伙紝璇ュ叧绯诲彲鑳芥槸鏄剧ず鐨勬椂闂翠笂鐨勫厛鍚庯紝鏄剧ず鐨勪綅缃瓑銆傝繖鏍峰湪缁堢鏄剧ず璇ユ秷鎭殑鏃跺€欙紝灏卞彲浠ヤ互骞荤伅鐗囩殑鏂瑰紡鏄剧ず涓€绯诲垪娑堟伅锛屼娇寰楄MM鐨勬樉绀烘洿鍔犺叮鍛冲寲銆?span lang="EN-US">


鍦?span lang="EN-US">application/vnd.wap.multipart.related鏂瑰紡鐨?span lang="EN-US">MMS PDU涔嬩腑锛屽惈鏈夋樉绀烘帶鍒堕儴鍒?ldquo;presentation”锛岃€?span lang="EN-US">application/vnd.wap.multipart.mixed涓嶅惈鏈夎閮ㄥ垎銆?/span>


presentation”鏄?MMS 涓竴涓壒娈婄殑娑堟伅鍐呭锛?span lang="EN-US">part锛夛紝瀹冨喅瀹氫簡鍏朵粬娑堟伅鍐呭鐨勬樉绀烘帶鍒朵俊鎭€傚疄鐜?span lang="EN-US">“presentation”杩欎釜娑堟伅鍐呭鐨勮瑷€锛屽氨鏄?span lang="EN-US">SMIL (Synchronized Multimedia Integration Language)銆?span lang="EN-US">SMIL鏄竴绉嶇畝鍗曠殑鏍囪鎬ц瑷€锛屽唴瀹逛功鍐欐牸寮忓拰HTML绫讳技銆?span lang="EN-US">“presentation”姝f槸鐢?span lang="EN-US">SMIL鏉ヨ〃绀鸿繖浜涘濯掍綋鍏冪礌鏄剧ず鐨勬搴忥紝浣嶇疆锛屽紑濮嬫挱鏀剧殑鏃堕棿锛岀粨鏉熸椂闂淬€備笅闈㈢粰鍑轰竴涓?span lang="EN-US">SMIL缁撴瀯鐨勪緥瀛愶紝鍏朵腑娉ㄩ噴-->鏄敞閲婇儴鍒嗭細


渚嬪瓙锛堝寘鍚袱甯?span lang="EN-US">,姣忓抚鍖呮嫭涓€寮犲浘鐗囧拰涓€娈垫枃鏈級



<--!浠?span lang="EN-US">smil寮€濮?span lang="EN-US">-->



<--!header smil 澶?span lang="EN-US">-->



<--!鏄剧ず鐨勫簳鏉挎帶鍒?span lang="EN-US">-->



<--!鏄剧ず鐨勫唴瀹瑰畾涔?span lang="EN-US">-->






<--!鏄剧ず鍐呭鎺у埗-->


<--!绗竴甯?span lang="EN-US">, 鎸佺画鏃堕棿涓?span lang="EN-US">20绉掞紝鏄剧ず鏂囦欢鍚嶇О鏄?span lang="EN-US">videofilename.3gp -->






<--!绗簩甯у紑濮嬶紝鎸佺画2绉?span lang="EN-US">-->





<--!绗簩甯х粨鏉?span lang="EN-US">-->




<--!smil缁撴潫-->



鐪嬭浜嗗惂锛屽拰HTML璇█宸笉澶氥€?span lang="EN-US">SMIL鍐欏ソ浜嗕互鍚庯紝鍦?span lang="EN-US">windows骞冲彴涓婏紝鍙﹀瓨涓?span lang="EN-US">.smil鏂囦欢浠ュ悗锛屽彲浠ョ敤鏀寔smil鏍煎紡鐨勮棰戞挱鏀惧櫒鎵撳紑锛屽墠鎻愭槸smil鏂囦欢鍜岄噷闈㈠紩鐢ㄥ埌鐨勫濯掍綋鍏冪礌鏀惧湪鍚屼竴涓洰褰曢噷闈€?span lang="EN-US">


鍓嶉潰璇磋繃锛屽悓闊抽锛岃棰戯紝鏂囨湰鍙婂浘鐗囨枃浠惰繖浜涘濯掍綋鍏冪礌涓€鏍凤紝“presentation”涔熸槸涓€涓秷鎭?span lang="EN-US">part锛屽畠浠湪Message Body涓殑鎺掑垪椤哄簭鍙互鏄换鎰忕殑銆傝繕璁板緱鍓嶉潰璇磋繃鐨?span lang="EN-US">MMS Header鏈€鍚庝竴涓煙Content Type鍚э紝褰?span lang="EN-US">MM鍐呭鍖呭惈SMIL鏍煎紡鐨勮〃鐜板眰鏃讹紝content type蹇呴』涓?span lang="EN-US">application/vnd.wap.multipart.related锛屽惁鍒欎娇鐢?span lang="EN-US">application/vnd.wap.multipart.mixed銆?span lang="EN-US">


瀹㈡埛绔€庝箞鐭ラ亾浠庡摢涓儴鍒嗗紑濮嬫樉绀哄憿锛熷綋瀛樺湪澶氬獟浣撳璞″拰鏄剧ず鎺у埗淇℃伅鏃讹紝鍗冲瓨鍦?ldquo;presentation”閮ㄥ垎锛屽鏋滃湪Content Type涓瓨鍦?span lang="EN-US">Start鍙傛暟锛?ldquo;presentation”濡傛灉涓嶆槸娑堟伅浣撶殑绗竴涓?span lang="EN-US">part锛屽垯蹇呴』鐢?span lang="EN-US">start鍙傛暟鎸囧嚭鍏舵墍鍦ㄤ綅缃?span lang="EN-US">;褰撲笉瀛樺湪Start鍙傛暟鏃讹紝“presentation”閮ㄥ垎搴旇鎺掑垪鍦ㄧ涓€浣嶇殑浣嶇疆涓婏紝鍗崇揣鎺ュ湪MMS Header鍚庨潰;褰撴牴鏈笉瀛樺湪“presentation”閮ㄥ垎鏃讹紝濡備綍鏄剧ず鍒欑敱瀹㈡埛绔殑鏄剧ず绛栫暐鏉ュ喅瀹氥€?span lang="EN-US">


3.3 MMS鐨勫皝瑁咃紙Encapsulation锛?/span>


瀵逛簬浣跨敤SMIL璇█鎻忚堪鐨?/span>MMS锛屽湪閫氳繃鏃犵嚎缃戠粶鍙戦€佺殑鏃跺€欙紝鎴戜滑蹇呴』閫氳繃涓€绉嶆柟寮忔妸SMIL鍜岄檮灞炵殑澶氬獟浣撳唴瀹瑰寘瑁呭湪涓€璧凤紝鑳藉浠ヤ竴涓?/span>unit锛堟暣浣擄級鐨勫舰寮忓彂閫佸嚭鍘伙紝浠ヤ究SMIL鏂囦欢鍚勪釜閮ㄥ垎鍐呭鐨?/span>reference鍙樺緱鏈夋晥銆?/span>


杩欎釜瑙e喅鐨勫姙娉曞氨鏄?/span>MIME锛?/span>Multipart Internet Mail Extensions锛夎鑼冿紝杩欎釜瑙勮寖鐨勬渶鍒濅綔鐢ㄦ槸鍦?/span>email鐨?/span>plain text鐨勪富浣撲腑鍔犲叆涓嶅悓鐨勫唴瀹广€傛瘮濡傝锛屽彂閫佸甫鏈夐檮浠剁殑email锛岃繖涓椂鍊欎綘灏变娇鐢ㄤ簡MIME鐨勮鑼冦€?/span>MIME璐熻矗鎶婃墍鏈夌殑鐙珛鐨勬枃鏈€佸浘鍍忋€佸0闊炽€佽棰戝唴瀹逛互鍙?/span>SMIL鏂囦欢鏈韩鎹嗙粦鍦ㄤ竴璧凤紝鐢ㄤ簬鍛婅瘔鎺ュ彈鐨勭粓绔繖涓?/span>MMS鐨勫唴瀹规槸鐩镐簰鐩稿叧锛?/span>related to one another锛夊苟涓旂浉浜掑弬鑰冪殑锛?/span>referenced to one another锛夈€?/span>MIME瑙勮寖(RFC2045-2049)鍜?span lang="EN-US">OMA鍒跺畾鐨?span lang="EN-US">Multimedia Messaging Service Encapsulation Protocol瑙勫畾鐨勪簩杩涘埗鐮佹牸寮忔湁涓€涓€瀵瑰簲鐨勫叧绯汇€?/span>


MIME灏佽绀轰緥


涓嬮潰鏄牴鎹?/span>RFC鏂囨。缁欏嚭鐨?/span>MIME鐨勫皝瑁呯ず渚嬶細










Content-Type: application/vnd.wap.multipart.related; boundary="boundary-example"; type="application/smil"


--boundary-example


Content-Type: text/html; charset="US-ASCII"


... ... %20...%20...


...%20...%20%20...%20...


--boundary-example


Content-Type:%20image/gif


Content-ID:%20


Content-Location:%20http://lib.csdn.net/article/c/fiction1/fiction2


…………………..Gif data


--boundary-example


Content-Type: image/gif


Content-ID:


Content-Location: fiction1/fiction3


…………………..Gif data


--boundary-example--





Content-type


浣嶄簬淇℃伅澶撮儴鐨?/span>content-type鐢ㄤ簬閫氱煡鎺ユ敹鐨勭粓绔秷鎭殑鍚勪釜涓嶅悓閮ㄥ垎鐨勫唴瀹规槸鐩镐簰鍏宠仈鐨勩€佸苟涓斿彲鑳芥槸鐩镐簰绱㈠紩鐨勶紙refer to one another锛夈€傝€屽湪淇℃伅浣撻噷闈㈢殑Content锛?span lang="EN-US">Type鐢ㄦ潵鎸囧畾璇ラ儴鍒嗗唴瀹圭殑鏁版嵁绫诲瀷銆?span lang="EN-US">


Boundary


Boundary鍙傛暟鎸囧畾鍒嗛殧绗︼紝鐢ㄤ簬鍒嗗壊鍚勪釜涓嶅悓鐨勬秷鎭?/span>part銆傚垎闅旂浠ヤ袱涓煭鏉?ldquo;-”寮€澶淬€傜涓€涓儴鍒嗘槸涓€涓?/span>html绫诲瀷鐨勬秷鎭紝杩欓噷鍙槸鍙栧緱浜嗙浉鍏崇殑閮ㄥ垎銆傜浜屽拰绗笁閮ㄥ垎鐪佺暐浜嗗疄闄呯殑images鍥惧儚鐨勫疄浣撱€?span lang="EN-US">


Content-Location 鍜?Content-ID


鍦?/span>HTML鏂囨湰閮ㄥ垎鎴戜滑鍙互鐪嬪埌锛屾垜浠彲浠ュ埄鐢ㄤ袱绉嶆柟寮忔潵绱㈠紩娑堟伅鍐呭鐨勪笉鍚岄儴鍒嗐€傝繖涓ょ涓嶅悓鐨勬柟寮忔槸 content-ID 鍜?content–Location銆傝繖涓や釜鍩熺殑灞炴€у簲璇ユ槸鍞竴鐨勶紝浠ヤ究鍖哄垎涓嶅悓鐨勬暟鎹潡銆?span lang="EN-US">


濡傛灉涓€閮ㄥ垎鐨勬秷鎭綋鎯抽€氳繃content-ID鎸囧悜锛?/span>refer to锛夊彟澶栦竴閮ㄥ垎鐨勬秷鎭綋锛屽彲浠ヤ娇鐢?ldquo;CID”銆?/span>鍏充簬MIME鐨勯儴鍒嗙殑淇℃伅鍙互鍙傝€?/span>RFC鏂囨。锛?/span>RFC2387鍜?/span>RFC2357锛夈€?span lang="EN-US">


Multipart data


Message Body鐨勭粨鏋勬濡備笂闈?span lang="EN-US">MIME鐨勫皝瑁呯粨鏋勩€傚湪瀹為檯鐨?span lang="EN-US">MMS PDU涓紝涓轰簡鍘嬬缉鏁版嵁锛屾瘡涓煙鐨勫煙鍚嶇敤鍥哄畾鐨勫瓧鑺傜紪鐮侊紝骞朵笖鍘绘帀浜嗗垎闅旂銆?span lang="EN-US">Message Body澶氬獟浣撴暟鎹紙Multipart锛屽搴斾簬澶氬獟浣撴枃浠舵暟鎹級鐨勭紪鐮佺粨鏋勫鍥?span lang="EN-US">12鎵€绀猴細





鍥?/span>12 Application/vnd.wap.multipart 鐨勬牸寮?/span>






鍥?/span>13 uintvar鍙橀噺缁撴瀯





鏁翠釜uintvar鍙橀噺鐨勯暱搴﹀皯浜?/span>5 byte鍥犳锛?/span>uintvar鍙互琛ㄧず鏃犵鍙锋暣鍨嬫暟鐨勮〃绀鸿寖鍥达紙0锝?/span>32bit锛夈€傚疄闄呬娇鐢ㄨ繃绋嬩腑锛屽厛鎶婅缂栫爜鐨勬暟鍊肩殑浜岃繘鍒朵粠鏈€浣庝綅鎸夋瘡7浣嶄竴缁勫垎濂斤紝鐒跺悗鎶婂畠浠~鍒?/span>PayLoad鍩熶腑锛岄珮浣嶄笉瓒崇殑琛ラ浂锛屼妇渚嬭鏄?/span>


鏁板€?/span>0x8715锛?/span>1000 0111 1010 0101锛夌紪鐮佹垚uintvar绫诲瀷濡備笅鎵€绀猴細





鍥?/span>14 0x8715鐨?/span>uintvar琛ㄧず




娉ㄦ剰锛屽鏋滈珮7浣嶆濂芥槸7涓浂鐨勮瘽锛屼笉鑳界紪鐮佹垚0x80锛岃€屾槸鐣ュ幓璇ュ瓧鑺傘€?/span>


Entries鍩熺粨鏋勫琛?span lang="EN-US">2鎵€绀猴細



琛?span lang="EN-US">2 Entries缁撴瀯




HeaderLen鎸囩ずContentType鍩熷拰Header鍩熺殑鎬婚暱搴︼紝鏄竴涓?span lang="EN-US">Uintvar鍙橀噺锛?span lang="EN-US">DataLen鎸囩ず鍚庨潰Data鍩熺殑闀垮害锛屽湪杩欓噷鎸囩殑鏄竴鍧楀濯掍綋鏁版嵁鐨勫瓧鑺傛暟锛?span lang="EN-US">ContentType鍩熺敤鏉ヨ〃绀哄悗闈㈢殑鏁版嵁鍧楁槸浠€涔堢被鍨嬬殑鏁版嵁锛堝txt鏂囨湰锛?span lang="EN-US">jpeg鍥剧墖锛岃繕鏄?span lang="EN-US">vidoe鏁版嵁娴侊級锛屽凡缁忔敞鍐岃繃鐨勭被鍨嬬紪鐮佸€煎彲瑙侀檮褰?span lang="EN-US">A銆?span lang="EN-US">Header鍩熸寚瀹氳鍧楁暟鎹殑鍏跺畠淇℃伅锛屽叾涓渶閲嶈鐨勬槸Content Location鍜?span lang="EN-US">Content ID鍊硷紝鍥犳锛屽湪Message Body閮ㄥ垎锛?span lang="EN-US">Header鍩熸槸涓嶈兘鐪佺暐鐨勩€?span lang="EN-US">Content Location鍜?span lang="EN-US">Content ID鍊奸€氬父鏄濯掍綋鏁版嵁鐨勬枃浠跺悕锛?span lang="EN-US">Content Location鍩熶互鍗曞紩鍙?ldquo;”寮€濮嬶紝鍚庨潰涓€瀵?span lang="EN-US"><>閲岄潰鍖呭惈鏂囦欢鍚嶏紝Content ID鍩熷垯鐩存帴灏辨槸涓€瀵?span lang="EN-US"><>閲岄潰鍖呭惈鏂囦欢鍚嶏紝鍏充簬杩欎袱涓煙鐨勬牸寮忓彲鍙傝€?span lang="EN-US">MIME 鐨?span lang="EN-US">Part one锛岃閮ㄥ垎鍦?span lang="EN-US">rfc2045閲岄潰銆傛帴鐫€Header鐨勬槸Data鍩燂紝瀹冪殑闀垮害鐢?span lang="EN-US">DataLen鎸囧畾锛岀幇鍦ㄥ簲璇ユ槑鐧戒负浠€涔?span lang="EN-US">MMS涓殑Message Body鐨?span lang="EN-US">MIME灏佽涓笉闇€瑕佸垎闅旂浜嗗惂锛屾瘡涓煙鐨勯暱搴﹂兘鏄寚瀹氱殑銆?span lang="EN-US">


涓€涓?span lang="EN-US">Entries鍩熺殑鍚庨潰绱ф帴鐫€鍙﹀涓€涓?span lang="EN-US">Entries鍩燂紙濡傛灉鏈夌殑璇濓級锛岀洿鍒版暣涓殑MMS PDU灏撅紝smil閮ㄥ垎涔熸槸涓€涓?span lang="EN-US">Entries銆?span lang="EN-US">


3.4 MMS PDU灏佽绀轰緥


涓嬮潰涓句竴涓疄闄呯殑MMS PDU缂栫爜绀轰緥鏉ョ粨鏉熸湰鑺傦紝璇?span lang="EN-US">MMS鏄?span lang="EN-US">multipart/related绫诲瀷銆?span lang="EN-US">


瀹為檯鍙戦€?span lang="EN-US">MMS PDU瀹屾暣鐨勫崄鍏繘鍒剁紪鐮佸涓嬶紝涓轰簡鑺傜渷绡囧箙锛岀敤“……”浠f浛澶氬獟浣撶殑鍏蜂綋鏁版嵁锛?/span>



8c 80 98 33 36 35 38 32 34 00 8d 92 89 1a 80 2b


38 36 31 33 34 36 39 30 37 32 34 30 34 2f 54 59


50 45 3d 50 4c 4d 4e 00 97 2b 38 36 31 35 38 37


34 32 38 39 37 36 36 2f 54 59 50 45 3d 50 4c 4d


4e 00 96 62 69 67 20 4d 4d 53 00 84 1f 1f b3 8a


3c 62 69 67 2e 73 6d 69 6c 3e 00 89 61 70 70 6c


69 63 61 74 69 6f 6e 2f 73 6d 69 6c 00 05 28 83


7c 61 70 70 6c 69 63 61 74 69 6f 6e 2f 73 6d 69


6c 00 c0 22 3c 62 69 67 2e 73 6d 69 6c 3e 00 8e


62 69 67 2e 73 6d 69 6c 00 3c 73 6d 69 6c 3e 0d


…………………………………………………………….


………………….22 b7 63 9e c0 22 3c 6c 69 6e 6d


65 69 6d 65 69 2e 6a 70 67 3e 00 8e 6c 69 6e 6d


65 69 6d 65 69 2e 6a 70 67 00 ff d8 ff e0………


………………………………………………… 1e d9 26


9d c0 22 3c 6c 6f 67 6f 5f 63 6e 2e 67 69 66 3e


00 8e 6c 6f 67 6f 5f 63 6e 2e 67 69 66 00 47 49


…………… 18 e4 36 9d c0 22 3c 32 30 30 38 2e


67 69 66 3e 00 8e 32 30 30 38 2e 67 69 66 00 47


………………… 1c cd 15 9d c0 22 3c 6d 6f 6e 6b


65 79 2e 67 69 66 3e 00 8e 6d 6f 6e 6b 65 79 2e


67 69 66 00 47 49 46………………………………….


……………………………………………………………..


涓婇潰闈掔豢鑹插拰娣遍粍鑹查儴鍒嗘槸MMS PDU Header锛岀伆鑹查儴鍒嗘槸Multipart Header锛屼笅闈㈡槸瀵逛笂闈㈡暟鎹殑鍒嗘瀽锛?/span>


8c 80


80:鍗?span lang="EN-US">0C鐨勬渶楂樹綅缃?span lang="EN-US">1 琛ㄧずX-Mms-Message-Type锛?


8C:m-send-req绫诲瀷鐨?span lang="EN-US">PDU


98 33 36 35 38 32 34 00


98:0x18+0x80 X-Mms-Transaction-ID


33 36 35 38 32 34 00:365824鐨?span lang="EN-US">ASC鈪$紪鐮侊紝鏈€鍚庝互00缁撳熬


8D 92


8D:X-Mms-Version 92: 1.2, 楂?span lang="EN-US">4浣?span lang="EN-US">9鏄富鐗堟湰鍙?span lang="EN-US">1+8,浣?span lang="EN-US">4浣嶆槸娆$増鏈彿2


89 1A 80 2B 38 36 31 33 34 36 39 30 37 32 34 30 34 2F 54 59 50 45 3D 50 4C 4D 4E 00


89:From 锛?span lang="EN-US">


1A:From鍩熺殑闀垮害


80:鍊煎煙鐨勭被鍨?


2B锝?span lang="EN-US">4E:+8613469072404/TYPE=PLMN锛屾渶鍚庝互00缁撳熬


97 2B 38 36 31 35 38 37 34 32 38 39 37 36 36 2F 54 59 50 45 3D 50 4C 4D 4E 00


97:TO


2B锝?span lang="EN-US">00:+8615874289766/TYPE=PLMN


96 62 69 67 20 4d 4d 53 00


96:Subject


62锝?span lang="EN-US">53 00: big MMS 鏈€鍚庝互00缁撳熬


84 1f 1f b3 8a


3c 62 69 67 2e 73 6d 69 6c 3e 00 89 61 70 70 6c


69 63 61 74 69 6f 6e 2f 73 6d 69 6c 00


84:Content-Type


1f锛氭寚绀哄悗闈竴涓瓧鑺傛槸uintwar闀垮害


1f锛?span lang="EN-US">Content-Type鐨勯暱搴︿负31瀛楄妭


b3锛?span lang="EN-US"> application/vnd.wap.multipart.related绫诲瀷锛屽搴斾簬闄勫綍A閲岄潰鐨?span lang="EN-US">0x33锛?span lang="EN-US">0x80锛?span lang="EN-US">


8a锛?span lang="EN-US">Start鍙傛暟锛岃WSP鍗忚Table 38. Well-Known Parameter Assignments锛岀紪鐮佸€煎姞0x80銆?/span>


3c锝?/span>3e 00锛?/span>鐨?/span>ASC2缂栫爜锛屾渶鍚庝互00缁撳熬


89锛?/span> Type鍙傛暟锛岃WSP Table38


61锝?/span>6c 00锛?/span>application/smil锛屼互00缁撳熬



05 28 83


7c 61 70 70 6c 69 63 61 74 69 6f 6e 2f 73 6d 69


6c 00 c0 22 3c 62 69 67 2e 73 6d 69 6c 3e 00 8e


62 69 67 2e 73 6d 69 6c 00


杩欐槸Multipart閮ㄥ垎锛?span lang="EN-US">


05锛氳〃绀哄悗闈㈡湁5涓?span lang="EN-US">part


28锛?span lang="EN-US">HeaderLen锛?span lang="EN-US">uintvar鍙橀噺锛岃〃绀哄悗闈㈢殑Content-Type鍜?span lang="EN-US">Header鏈?span lang="EN-US">40涓瓧鑺傞暱搴?span lang="EN-US">


83 7c锛?span lang="EN-US">DataLen锛?span lang="EN-US">uintvar鍙橀噺锛屽悗闈㈡暟鎹儴鍒嗙殑闀垮害锛堝嵆smil鏂囦欢鐨勯暱搴︼級锛岃浆鍖栨垚鍗佽繘鍒跺氨鏄?span lang="EN-US">508锛?/span>



61 70 70 6c 69 63 61 74 69 6f 6e 2f 73 6d 69 6c 00


Content Type鍩燂細application/smil鐨?span lang="EN-US">ASC2缂栫爜锛屾渶鍚庝互00缁撳熬


c0 22锝?span lang="EN-US">3e 00锛?span lang="EN-US">c0琛ㄧず杩欐槸Content ID鍩?span lang="EN-US">


22锝?span lang="EN-US">3e鏄?span lang="EN-US">"鐨?span lang="EN-US">ASC2缂栫爜锛屾渶鍚庝互00缁撳熬



8e 62 69 67 2e 73 6d 69 6c 00


8e锛氳〃绀鸿繖鏄?span lang="EN-US">Content Location鍩?span lang="EN-US">


62锝?span lang="EN-US">6c 00锛氭槸big.smil鐨?span lang="EN-US">ASC2缂栫爜锛屾渶鍚庝互00缁撳熬


绱綏鍏伴鑹查儴鍒嗘槸big.smil鏂囦欢鐨勫叿浣撴暟鎹?span lang="EN-US">


绱ф帴鐫€鐨勯潚鑹查儴鍒嗘槸linmeimei.jpg閮ㄥ垎鐨?span lang="EN-US">Header鍜屾暟鎹?/span>



22 b7 63 9e c0 22 3c 6c 69 6e 6d


65 69 6d 65 69 2e 6a 70 67 3e 00 8e 6c 69 6e 6d


65 69 6d 65 69 2e 6a 70 67 00 ff d8 ff e0


22锛?span lang="EN-US">HeaderLen


B7 63锛?span lang="EN-US">DataLen锛?span lang="EN-US">uintvar鍙橀噺


9e锛?span lang="EN-US">Content Type鍩燂紝闄勫綍A涓殑image/jpeg 缂栫爜0x1e+0x80


c0锛?span lang="EN-US">Content ID鍩熷悕缂栫爜


22锝?span lang="EN-US">3e锛?span lang="EN-US">Content ID鍊?span lang="EN-US">"鐨?span lang="EN-US">ASC2缂栫爜锛屾渶鍚庝互00缁撳熬



ff d8 ff e0……锛?span lang="EN-US">jpg鐨勫叿浣撴暟鎹?span lang="EN-US">


鍚庨潰鐨勪笉鍚岄鑹查儴鍒嗚〃绀轰笉鍚岀殑Data part锛岀粨鏋勫拰鍒嗘瀽鍚屼笂锛岃繖閲屼笉鍐嶈禈杩般€?/span>



璇存槑锛?span lang="EN-US">Content Type鍩熷悕缂栫爜鍙互鍙傜収WSP鍗忚璇存槑鐨?/span>Table 39. Header Field Name Assignments锛?/span>Content Type鍙傛暟缂栫爜鍙互鍙傜収WSP 鍗忚鏂囨。鐨?/span>Table 38. Well-Known Parameter Assignments锛岃繖涓や釜绫诲瀷鐨勭紪鐮佸€煎湪MMS PDU涓兘瑕佹妸鏈€楂樹綅缃?/span>1锛岀紪鐮佸€?/span>+0x80銆傚叾瀹?/span>Header鍩熺殑缂栫爜鍙弬鐓?/span>WSP璇存槑鐨?/span>8.4 Header Encoding绔犺妭锛屾瘡涓?/span>Header鍩熷彲浠ユ湁澶氱琛ㄧず鏂规硶锛屽叾涓濡?/span>From锛?/span>To杩欎簺鍩熺殑鏍煎紡闇€瑕佸弬鐓?/span>MIME鐩稿叧鏂囨。銆?/span>



鎺掔増鐨勬晥鏋滀笉澶悊鎯筹紝鍦ㄧ綉椤典笂鎺掔増涓嶅鏄撳憖锛屽ソ鍦ㄨ繕鎻掑叆琛ㄦ牸鍜屽瓧浣撻鑹诧紝杞浇璇锋敞鏄庡嚭澶勩€?/p>


<------- 鏈畬寰呯画 ------->




MMS Header缂栫爜







鍥?span lang="EN-US">10 鐢辩郴鍒楀煙鍚嶅拰鍩熷€肩粍鎴愪簡鐨?span lang="EN-US">Header鍩?/span>



棰勫畾涔夌殑娑堟伅鍩熷悕锛?span lang="EN-US">Header Name锛夐兘鐢卞敮涓€鐨勫崟瀛楄妭缂栫爜锛屽煙鍊硷紙Header Value锛夊彲鑳芥槸涓€涓崟瀛楄妭锛屼篃鍙兘鏄瀛楄妭锛岃繖鍙栧喅浜?span lang="EN-US">Header Name銆傝〃1鍒楀嚭浜嗕竴浜涘父瑙佺殑鍩熷悕鍙婂叾缂栫爜鍊硷細


琛?span lang="EN-US">1 甯歌鐨勫煙鍚嶅強鍏剁紪鐮?span lang="EN-US">




































































































































鍩熷悕



璇存槑



缂栫爜



Bcc



瀵嗛€佽€呭湴鍧€



0x01



Cc



鎶勯€佽€呭湴鍧€



0x02



Content-Location



鐭伅閫氱煡鏃剁敤浜庡瓨鏀?span lang="EN-US">MM鎵€鍦ㄦ湇鍔″櫒鐨?span lang="EN-US">Uri鍦板潃



0x03



Content-Type



鍐呭绫诲瀷



0x04



Date



鏃ユ湡



0x05



Delivery-Report



鐘舵€佹姤鍛婏紙榛樿涓轰笉闇€瑕侊級



0x06



Delivery-Time



鎶ュ憡鏃堕棿



0x07



Expiry



鏈夋晥鏈?span lang="EN-US">



0x08



From



鍙戦€佽€呬俊鎭?span lang="EN-US">



0x09



Message-Class



淇℃伅鐨勭被鍨嬶紙涓汉銆佸箍鍛娿€佷俊鎭繕鏄嚜鍔級



0x0A



Message-ID



淇℃伅ID锛岃瘑鍒笉鍚岀殑褰╀俊



0x0B



Message-Type



PDU绫诲瀷



0x0C



MMS-Version



浣跨敤MMS鍗忚鐨勭増鏈?span lang="EN-US">



0x0D



Message-Size



MM鐨勫ぇ灏?span lang="EN-US">



0x0E



Priority



浼樺厛绾?span lang="EN-US">



0x0F



Read-Reply



鏄惁闇€瑕侀槄璇绘姤鍛?span lang="EN-US">



0x10



Report-Allowed



鏄惁鍏佽鎶ュ憡



0x11



Response-Status



鍥炲鐘舵€?span lang="EN-US">



0x12



Response-Text



鍥炲鏂囨湰



0x13



Sender-Visibility



鍙戦€佽€呮槸鍚﹀彲瑙侊紙鍗虫槸鍚﹀尶鍚嶅彂閫侊級



0x14



Status



淇℃伅鐘舵€侊紙鏄惁绔嬪嵆鎺ユ敹锛屾嫆缁濊繕鏄笉鏀寔锛?span lang="EN-US">



0x15



Subject



涓婚



0x16



To



鎺ユ敹鑰呭湴鍧€



0x17



Transaction-Id



浼犺緭ID锛堢敤浜庣綉缁滄帶鍒讹紝璇嗗埆涓嶅悓鐨勪紶杈擄級



0x18





鍦ㄥMMS Header缂栫爜鏃讹紝X-Mms-Message-Type, X-Mms-Transaction-ID鍜?span lang="EN-US">X-Mms-MMS-Version鏄繀椤诲瓨鍦ㄧ殑锛屼笖瀹冧滑蹇呴』浣嶄簬MMS Header鐨勫紑濮嬮儴鍒嗭紝骞朵笖鎸夌収鍓嶉潰鎵€鍒楃殑椤哄簭鎺掑垪銆?span lang="EN-US">Content-Type蹇呴』鍦?span lang="EN-US">MMS澶村煙鐨勬渶鍚庯紝鍏跺悗涓烘秷鎭綋銆傚叾瀹冨煙鐨勯『搴忓彲浠ラ殢鎰忓畨鎺掋€傞櫎浜嗗父鐢ㄧ殑娑堟伅鍩熷锛屼篃鍙互鑷畾涔夋秷鎭煙锛岃嚜瀹氫箟娑堟伅鍩熶互X-寮€澶达紝浣嗕笉鑳戒互X-Mms-寮€澶淬€?/span>


杩欓噷鍐嶅己璋冧竴娆★紝涓嶅悓绫诲瀷鐨?span lang="EN-US">PDU Header鍖呮嫭鐨勫煙鏄笉灏界浉鍚岀殑锛屽湪鍚屼竴涓?span lang="EN-US">Header閲岄潰锛屾湁鐨勫煙鏄繀椤诲瓨鍦ㄧ殑锛屾湁鐨勫煙鏄湪鏌愪簺鎯呭喌涓嬫墠瀛樺湪鐨勶紝杩樻湁鐨勫煙鍒欐槸鍙€夌殑锛屼笉鍚岀被鍨?span lang="EN-US">PDU Header鐨勮缁嗙粨鏋勫彲鍙傝OMA-MMS-ENC-V1_2-20040323-C.pdf 鐨勭6鑺傦紝璇︾粏鐨?span lang="EN-US">Header鍩熷悕鍜屽搴斿煙鍚嶇殑缂栫爜鍙弬鑰?span lang="EN-US">OMA-MMS-ENC-V1_2-20040323-C.pdf鐨勭7.2鑺傚拰7.3鑺傘€傝鏄庝竴鐐癸細涓轰簡鏄紶杈撶殑鏁版嵁鏇寸揣鍑戯紝WSP鍗忚瑙勫畾锛屽浜?span lang="EN-US">Header Field Name鐨勭紪鐮侊紝鏁板€肩殑鏈€楂樹綅锛堝嵆bit7锛夌疆1銆傚洜姝わ紝涓婅堪缂栫爜鍊煎湪瀹為檯鐨?span lang="EN-US">MMS PDU涓渶瑕佸姞涓?span lang="EN-US">0x80銆?/span>



3.2 Message Body


MMS 鍦ㄧ粓绔笂鏄剧ず鍑烘潵鍙互浠呬粎鏄竴骞呯敾闈紝涔熷彲浠ュ儚涓€绯诲垪鐨勫够鐏墖涓€鏍凤紝涓€寮犳帴鐫€涓€寮犳湁搴忓湴鎾斁锛屾瘡寮?ldquo;骞荤伅鐗?rdquo;鍙互鍖呮嫭鏂囧瓧銆佸浘鍍忓拰澹伴煶锛岀敋鑷宠棰戠瓑澶氬獟浣撳厓绱狅紝鍏冪礌鐨勬樉绀轰綅缃拰鏄剧ず鏃堕棿鍙互鎺у埗锛?ldquo;骞荤伅鐗?rdquo;涔嬮棿鏈変竴瀹氱殑鏃堕棿闂撮殧銆傝繖浜涘濯掍綋鍏冪礌鐨勬暟鎹拰鏄剧ず鎺у埗淇℃伅閫氳繃涓€瀹氱殑鏂瑰紡缁勭粐璧锋潵锛岀粡杩囩紪鐮侊紝灏辩粍鎴愪簡MMS PDU鐨勬秷鎭綋銆傜粨鏋勫鍥?span lang="EN-US">11鎵€绀猴細




鍥?span lang="EN-US">11 MMS PDU缁撴瀯



MMS Header鍦ㄨ涔変笂涓?span lang="EN-US">HTTP鍗忚绫讳技锛屼絾鏄叾缂栫爜鏂瑰紡骞朵笉涓€鏍凤紝涓轰簡鍏呭垎鍒╃敤甯﹀锛?span lang="EN-US">MMS Header閲囩敤浜岃繘鍒舵柟寮忕紪鐮併€?span lang="EN-US">Header涓殑姣忎竴涓煙鐢卞煙鍚嶅拰鍩熷€肩粍鎴?span lang="EN-US">,濡備笅鍥撅細

第七城市

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台