Send WAP Multimedia Message by HTPP

Send WAP Multimedia Message by HTPP SearchSearch
Author Message
Jack
Unregistered guest
Posted on Thursday, March 24, 2005 - 12:13 pm:   

How to Send WAP Multimedia Message via HTTP, not from the web interface?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4211
Registered: 10-2002
Posted on Thursday, March 24, 2005 - 10:02 pm:   

Hi Jack,

Use the same approach that you would use if you were sending an MMS:

http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages_URL.htm

But include a variable MMSWAPPush=Yes in your submission which tells us to use WAP Multimedia Push instead of MMS formatting.

The following thread has some information on adapting the different MMS submission interfaces to use Multimedia WAP Push instead:

http://support.nowsms.com/discus/messages/12/2276.html

And finally, here is a simple example:

http://127.0.0.1:8800/?PhoneNumber=xxxxxx&MMSFrom=sender@domain&MMSSubject=Message+Subject&MMSText=An+optional+text+part+of+the+message& MMSWAPPush=Yes&MMSFile=http://www.nowsms.com/media/logo.gif

The MMSFILE variable can be repeated multiple times. MMSFROM, MMSSUBJECT and MMSTEXT are optional.

-bn
Jack
Unregistered guest
Posted on Monday, March 28, 2005 - 12:03 pm:   

Thank you Bryce.
But is that a must to enter the path of the MMSFile as a URL?

I mean, can it be a path on the HD like "C:\1.bmp"?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4229
Registered: 10-2002
Posted on Monday, March 28, 2005 - 06:30 pm:   

Jack,

The reason we don't support this is for security reasons. This option would be useful in environments where you are running on a single PC, but when people are using us as a server ... they wouldn't want others to be able to send arbitrary files from the PC by exploring the file structure.

If you're using a development environment that supports HTTP file upload, you can perform an HTTP POST that includes the file content in the post.

There is a PHP example in the thread referenced above.

There is also a Java example at:

http://support.nowsms.com/discus/messages/485/1360.html

This Java example uses the Apache HttpClient, which has built in support for "HTTP file upload" using the "multpart/form-data" MIME type.

It doesn't require that you are using the Apache web server ... it is a separate Apache project, where basically you can download the classes and add them to your Java install. Here are the relevant links:

http://jakarta.apache.org/commons/httpclient/index.html
http://jakarta.apache.org/commons/httpclient/downloads.html
http://jakarta.apache.org/commons/httpclient/tutorial.html