SENDING MMS FROM MMS-IN FOLDER WITH HTTP POST PROBLEM

SENDING MMS FROM MMS-IN FOLDER WITH HTTP POST PROBLEM SearchSearch
Author Message
whiskyconorujo
New member
Username: V800

Post Number: 8
Registered: 05-2007
Posted on Friday, July 06, 2007 - 10:09 am:   

Hi!

I'm Antonio, and I want to send received mms from my mms1 connection in the mms-in folder with the http post method. I send you an example of what I wanted to do, because I don't know if it's possible. It answers to me (the browser) Error: Internal Error.

The command I write is the next:

http://127.0.0.1:8800/?PhoneNumber=06034928XX&
MMSFrom=perico@palotes&MMSSubject=CHANGING%20THE
%20ORIGINAL%20SUBJECT&MMSFile=E:\Program%20Files\
NowSMS\MMS-IN\467FA8AC.hdr&MMSFile=E:\Program
%20Files\NowSMS\MMS-IN\467FA8AC\_part_&
MMSFile=E:\Program%20Files\NowSMS\MMS-IN\467FA8AC\0_0.txt&
MMSFile=E:\Program%20Files\NowSMS\MMS-IN\467FA8AC\0_1.bmp&
MMSFile=E:\Program%20Files\NowSMS\MMS-IN\467FA8AC\0_2.mid

In the phone number I put the XX at the end for security issues!.

The same method with the precompiled .mms files works properly.

If it's possible, is there any way to send the .hdr file and the other files located inside the folder, without specifying all the path as I do?

We want to do this because we send mms from a mobile to the modem, then it's stored in the mms-in folder, and want to send it to different recipients, with the http post parameters.

Help me please!!
Thank you very much
whiskyconorujo
New member
Username: V800

Post Number: 9
Registered: 05-2007
Posted on Friday, July 06, 2007 - 11:20 am:   

Excuse me, I forgot to say that with the web interface of now sms it works properly attaching all the files.

Thx.
whiskyconorujo
New member
Username: V800

Post Number: 10
Registered: 05-2007
Posted on Friday, July 06, 2007 - 01:50 pm:   

Hi, I'm Antonio again:

This is (a part of) my MMSCDEBUG.LOG FILE FOR IF IT CAN HELP:

It's generated when I try to send this files in order to generate an mms as I explained in latest posts.

14:26:57:666 [11] InternalProcessConnection: Thread started
14:26:57:666 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...
14:26:57:666 [11] ThreadProcessConnection: Packet Length is 481 bytes
14:26:57:666 [11] ThreadProcessConnection: 47 45 54 20 2F 3F 50 68 6F 6E 65 4E 75 6D 62 65 GET /?PhoneNumbe
14:26:57:666 [11] ThreadProcessConnection: 72 3D 30 36 30 33 34 39 32 38 37 34 26 4D 4D 53 r=0603492874&MMS
14:26:57:666 [11] ThreadProcessConnection: 46 72 6F 6D 3D 6B 6B 6B 6B 26 4D 4D 53 53 75 62 From=kkkk&MMSSub
14:26:57:666 [11] ThreadProcessConnection: 6A 65 63 74 3D 68 6F 6C 61 26 4D 4D 53 54 65 78 ject=hola&MMSTex
14:26:57:666 [11] ThreadProcessConnection: 74 3D 76 61 6D 6F 73 41 76 65 72 26 4D 4D 53 46 t=vamosAver&MMSF
14:26:57:666 [11] ThreadProcessConnection: 69 6C 65 3D 45 3A 5C 30 5F 31 2E 62 6D 70 20 48 ile=E:\0_1.bmp H
14:26:57:666 [11] ThreadProcessConnection: 54 54 50 2F 31 2E 31 0D 0A 41 63 63 65 70 74 3A TTP/1.1 Accept:
14:26:57:666 [11] ThreadProcessConnection: 20 69 6D 61 67 65 2F 67 69 66 2C 20 69 6D 61 67 image/gif, imag
14:26:57:666 [11] ThreadProcessConnection: 65 2F 78 2D 78 62 69 74 6D 61 70 2C 20 69 6D 61 e/x-xbitmap, ima
14:26:57:666 [11] ThreadProcessConnection: 67 65 2F 6A 70 65 67 2C 20 69 6D 61 67 65 2F 70 ge/jpeg, image/p
14:26:57:666 [11] ThreadProcessConnection: 6A 70 65 67 2C 20 61 70 70 6C 69 63 61 74 69 6F jpeg, applicatio
14:26:57:666 [11] ThreadProcessConnection: 6E 2F 78 2D 73 68 6F 63 6B 77 61 76 65 2D 66 6C n/x-shockwave-fl
14:26:57:666 [11] ThreadProcessConnection: 61 73 68 2C 20 2A 2F 2A 0D 0A 41 63 63 65 70 74 ash, */* Accept
14:26:57:666 [11] ThreadProcessConnection: 2D 4C 61 6E 67 75 61 67 65 3A 20 66 72 0D 0A 41 -Language: fr A
14:26:57:666 [11] ThreadProcessConnection: 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 ccept-Encoding:
14:26:57:666 [11] ThreadProcessConnection: 67 7A 69 70 2C 20 64 65 66 6C 61 74 65 0D 0A 55 gzip, deflate U
14:26:57:666 [11] ThreadProcessConnection: 73 65 72 2D 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C ser-Agent: Mozil
14:26:57:666 [11] ThreadProcessConnection: 6C 61 2F 34 2E 30 20 28 63 6F 6D 70 61 74 69 62 la/4.0 (compatib
14:26:57:666 [11] ThreadProcessConnection: 6C 65 3B 20 4D 53 49 45 20 36 2E 30 3B 20 57 69 le; MSIE 6.0; Wi
14:26:57:666 [11] ThreadProcessConnection: 6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 53 56 ndows NT 5.1; SV
14:26:57:666 [11] ThreadProcessConnection: 31 29 0D 0A 48 6F 73 74 3A 20 31 32 37 2E 30 2E 1) Host: 127.0.
14:26:57:666 [11] ThreadProcessConnection: 30 2E 31 3A 38 30 38 30 0D 0A 43 6F 6E 6E 65 63 0.1:8080 Connec
14:26:57:666 [11] ThreadProcessConnection: 74 69 6F 6E 3A 20 4B 65 65 70 2D 41 6C 69 76 65 tion: Keep-Alive
14:26:57:666 [11] ThreadProcessConnection: 0D 0A 43 6F 6F 6B 69 65 3A 20 6A 69 76 65 66 6F Cookie: jivefo
14:26:57:666 [11] ThreadProcessConnection: 72 75 6D 73 2E 61 64 6D 69 6E 2E 6C 6F 67 76 69 rums.admin.logvi
14:26:57:666 [11] ThreadProcessConnection: 65 77 65 72 3D 64 65 62 75 67 2E 73 69 7A 65 25 ewer= debug.size%
14:26:57:666 [11] ThreadProcessConnection: 33 44 30 25 32 36 69 6E 66 6F 2E 73 69 7A 65 25 3D0%26info.size%
14:26:57:666 [11] ThreadProcessConnection: 33 44 33 35 34 32 25 32 36 77 61 72 6E 2E 73 69 3D3542%26warn.si
14:26:57:666 [11] ThreadProcessConnection: 7A 65 25 33 44 33 38 30 32 25 32 36 65 72 72 6F ze%3D3802%26erro
14:26:57:666 [11] ThreadProcessConnection: 72 2E 73 69 7A 65 25 33 44 34 35 37 39 0D 0A 0D r.size%3D4579
14:26:57:666 [11] ThreadProcessConnection: 0A
14:26:57:666 [11] ThreadProcessConnection: E:\PROGRA~1\NowSMS\MMSCDATA\.INI
14:26:57:666 [11] ThreadProcessConnection: File not found
14:26:57:666 [11] ThreadProcessConnection: E:\PROGRA~1\NowSMS\MMSCDATA\
14:26:57:666 [11] ThreadProcessConnection: HTTP/1.1 404 Not Found
Content-Length: 0
Connection: Keep-Alive


14:28:26:674 [11] ProcessRead: Winsock:ioctlsocket reports end of socket
14:28:26:674 [11] ThreadProcessConnection: Processing Complete
14:28:26:674 [11] InternalProcessConnection: Thread ended

Thx!}
whiskyconorujo
New member
Username: V800

Post Number: 11
Registered: 05-2007
Posted on Tuesday, July 10, 2007 - 01:34 pm:   

Ok, It's solved, I learned that you can't send local files, always to an URL. Now it works properly.

Thx Anyway!!!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7326
Registered: 10-2002
Posted on Tuesday, July 10, 2007 - 08:53 pm:   

Correct. It might be a nice option to add support for sending local files ... but in most instances it is not a good idea because of security issues.

Maybe there will be an INI file switch in the future to enable local files.

-bn