Hi,
MMS is send in the HTTP message body, which includes the HTTP header.
I use Nokia java library to send MMS.
So my question is if I need to set the HTTP header myself?
For example, the header:
POST / HTTP/1.1
HOST: 194.202.214.45:27287
CONTENT-TYPE: application/vnd.wap.mms-message
If I need to set the content-type header? like, mmsSender.addHeader();
And one more question, about extension HTTP headers.
Can I just set the extension http header just use mmsSender.addHeader()?
for example: mmsSender.addHeader("X-NOKIA-MMSC-Charging","9"
It's a little urgent. Thank you very much for reply.
The HTTP Content-Type for every MMS message should be always "application/vnd.wap.mms-message" according to WAP-209-MMS-Encap specifications by Open Mobile Alliance (former WapForum),
so in the way you are setting http-headers, you should:
mmsSender.addHeader("Content-Type","application/vnd.wap.mms-message"
But you should remember though that you have to send also MMS header for content-type which actually describes the content type of the inside message (either application/vnd.wap.multipart.mixed or application/vnd.wap.multipart.related - in second case you must specify the message start part content-id and its type [basically it would be application/smil])