Sending a forward-lock message from PHP

Posted: 06-11-2005, 03:09 PM
Hi all,

I'm trying to send a forward-lock message from PHP using the following
code:

header("Content-type: application/vnd.oma.drm.message;
boundary=boundary-1");
print("--boundary-1\n");
print("Content-type: audio/midi\n");
print("Content-Transfer-Encoding: binary\n");
print("\n");
fpassthru(fopen("test.mid", "rb"));
print("\n--boundary-1--\n");

It works fine in the Openwave Phone Simulator, I can even play the midi
file! However, on both a Nokia 6230 and a SonyEricsson K500i, both of
which have forward locking support, I get a "file corrupted" error
message.

Any idea what I'm doing wrong?

Thanks in advance,

Rob

Reply With Quote

Responses to "Sending a forward-lock message from PHP"

Miguel Cruz
Miguel Cruz's Avatar
Posts: n/a
 
Re: Sending a forward-lock message from PHP
Posted: 06-11-2005, 04:30 PM
<robbiemorgan@yahoo.com> wrote:
> print("Content-Transfer-Encoding: binary\n");
> fpassthru(fopen("test.mid", "rb"));
>
> It works fine in the Openwave Phone Simulator, I can even play the midi
> file! However, on both a Nokia 6230 and a SonyEricsson K500i, both of
> which have forward locking support, I get a "file corrupted" error
> message. Any idea what I'm doing wrong?


You may have better luck with base64 encoding.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Queens Day in Amsterdam; the Grand Canyon; Amman, Jordan
Reply With Quote
 
Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OMA DRM forward lock Fabio Bernardino Nokia 0 03-27-2005 03:43 PM
Sending SCKL vCard to TDM Works, Jsut get SCKL Message on GSM Scott Townsend Nokia 0 07-07-2004 06:47 PM
3gpp video files forward lock on nokia bratinella Nokia 0 04-19-2004 10:14 AM
7250i multi-media message sending fails eggster2k Nokia 4 09-28-2003 11:31 PM
Message Sending Failed using PC Suite 5.1 with my 6610 Gunnar Storebo Nokia 3 06-25-2003 01:15 PM


All times are GMT. The time now is 09:03 PM.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33