Nicolas de Bari Embriz Garcia Rojas wrote:
Hello, how can i send content with drm forward lock wrapper using php ?

I send a wap push via sms to something like k9.cx/test.dm, the dm file is a php scrip that contains this:

<?php
header("Content-type: application/vnd.oma.drm.message; boundary=boundary-1");
Most devices do not need the boundary specified in the content-type header and some even fail because of it. Try it with just ``application/vnd.oma.drm..message''.

print("--boundary-1\n");
print("Content-type: image/jpeg\n");
print("Content-Transfer-Encoding: binary\n");
print("\n");
readfile('test.jpg');
print("\n--boundary-1--\n");
If you're on a *nix system, which I assume you are, don't just use ``\n''. MIME should use ``\r\n'' (decimal characters 13 and 10 or hex ``0d0a'').
Other than that, I think your script should work.

?>

Any idea on how to correctly apply add the forward lock to the jpg.


regards.




  • DRM Forward lock Nicolas de Bari Embriz Garcia Rojas
    • Re: DRM Forward lock Thanos Chatziathanassiou

Reply via email to