How to reference "cid" in Multipart body | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through August 08, 2004 ⬆ |
◄ ► |
Author | Message | |||
Dono Unregistered guest |
Hi, I'm trying to figure out how should I use "cid" from SMIL to reference (get the filename) to a multimedia file in the MMS (application/vnd.wap.multipart.related) message. Given the dump (not complete) from the ethereal below, by using the cid: "aBcDeFgHiJ", in order to get "text1.txt" from "Part: 2" which field should I refer to: "filename=", "name=" or "Content-Location:" ?? Is there a specification, such as RFC, that describes this particular section? Ethereal dump: ============== Data (Post) Multipart body Part: 1, content-type: application/smil Content-Type: application/smil Headers Content-Location: msg.smil Content-Id: "<msgsmil>" Line-based text data: application/smil <smil> <head> .... .... <body> <par dur="8000ms"> <text src="cid:aBcDeFgHiJ" region="Text" /> </par> </body> </smil> Part: 2, content-type: text/plain Content-Type: text/plain; charset=utf-8; filename=text1.txt; name=text1.txt Headers Content-Location: text1.txt Content-Id: "<aBcDeFgHiJ>" | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3225 Registered: 10-2002 |
If an "src" reference starts with "cid:", then it is referencing one of the parts of the message by its "Content-ID:" header. If it does not start with "cid:" then it is referring by file name ... which is often specified as the "Content-Location:" header, but can also be specfied by the "name=" parameter of the "Content-Type:" header (or "filename=" parameter of the "Content-Disposition:" header). I'm sure there's an RFC somewhere that describes this, but the above is my interpretation ... |