Submitting MMS from Command line

Submitting MMS from Command line SearchSearch
Author Message
Posted on Monday, August 25, 2003 - 12:13 am:   


I'm trying to submit a MMS direct from the command line (actually HTTP socket) and cannot get the syntax right.

I've created the MMS file with MMSCOMP and can send it out using the WEB interface.

I can also send out a SMS by telnetting to port 8800 and issueing the following string:
GET /?PhoneNumber=0824413903&Text=Message

I've tried the following string for MMS:
GET /?PhoneNumber=0824413903&MMSText=MMS+Message&MMSFile=&MMSSubject=subject&MMSFrom =

and it works file.

When I try to add the MMS file as follows:
GET /?PhoneNumber=0824413903&MMSText=MMS+Message&MMSFile=gate.MMS&MMSSubject=subject &MMSFrom=

I get the following error:

HTTP/1.0 500 Internal Error
Content-type: text/html
Expires: Tue, 01 Jan 1980 1:00:00 GMT
Cache-Control: no-cache

Internal Error processing request</title></head>
Error: Internal Error

It seems to be the syntax of the MMSFile option???

Posted on Saturday, August 30, 2003 - 07:25 pm:   

Realise now I have to do a complex POST. Decided to use smtp command-line client to submit MMS. Works a treat!
Bryce Norwood - NowSMS Support
Posted on Thursday, September 04, 2003 - 02:58 pm:   

Hi Jannie,

Sorry for the delay getting back to you. Another option when using the HTTP interface is to specify a complete URL path for the MMSFILE parameter, e.g., (I escaped the :// as %2F%3A%3A here which you may or may not have to do depending on the tools you are using to generate the request).

Posted on Friday, September 05, 2003 - 12:00 pm:   


Must the MMSFile parameter be a URL? CAn it not be a directory?

What if I put the file on the nowsms server and give a pathname to it?

Bryce Norwood - NowSMS Support
Posted on Friday, September 05, 2003 - 03:12 pm:   


No, it has to be in a URL.

There *might* be a backdoor, where if you placed a file in the TEMP directory beneath the NowSMS program directory, then NowSMS might find it if you reference such a file in the MMSFILE parameter. (Note that I would expect it to delete the file after it processes it.)

This behaviour might vary between releases, so I'd be hesitant to rely on it.