Posting with the MM1 interface

Posting with the MM1 interface SearchSearch
Author Message
Anonymous
 
Posted on Tuesday, September 28, 2004 - 09:25 am:   

I'm trying to send an MMS using NowSMS' MM1 interface. I have a precompiled MMS file. I've constructed a multi-part post message using Java as described at http://support.nowsms.com/discus/messages/485/1360.html.

When I make the post, however, I get this response from the server:

<HTML><HEAD><TITLE>
Unknown Request
</TITLE></HEAD><BODY><H1>
Unknown request: content type is unknown
</H1></BODY></HTML>


I've set the content type to application/vnd.wap.mms-message. Can someone post an example of a real, working MM1 post message so that I can figure out where I'm going wrong?

Thanks in advance.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3465
Registered: 10-2002
Posted on Tuesday, September 28, 2004 - 07:50 pm:   

I think you're posting to the wrong server port.

Let me explain ...

The multipart post submission (HTTP file upload) needs to go to the SMS gateway's web interface. So it needs to go to the "port number for web interface" as configured on the "Web" page of the NowSMS configuration.

That error message looks like it is being posted to the MMSC HTTP port. If you were using raw MM1, that is where you would post such a message ... but that Java program is using the multi-part POST which has a MIME type of "multipart/form-data". The MMSC would expect a direct MM1 submission to have a MIME type of "application/vnd.wap.mms-message".

I've probably confused you a bit more with this explanation ... but bottom line ... using the approach in that script, you need to post to the port number for the SMS gateway's web interface (same port number you connect to to get the menu for submitting messages).

-bn