| View previous topic :: View next topic |
| Author |
Message |
trevi
Joined: 13 Nov 2003 Posts: 10
|
Posted: Mon Mar 29, 2004 1:49 am Post subject: SPV problems |
|
|
Hey Stephan,
I recently bought a SPV E 200 of orange but
it doesn't work fine with mms diary.
Is there something I can do with the headers?
Or is there a way that I can check the headers the phone is
sending?
Maybe I can connect to a script of yours and you can read out the headers.
My phone is connecting to the script because I can see the connection in my log file.
thx in advance! |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Mon Mar 29, 2004 4:35 pm Post subject: |
|
|
Well what you could do is to change the script so that it writes the $HTTP_RAW_POST_DATA variable to a file. Then you could analyze that one and see if something goes wrong with the script. Simply make a small PHP-script that you run locally on your machine that just invokes the parser. You can also change the mmslib and set debug to 1. It will then print out some log while it parses.
The actual HTTP headers are not important though. MMS Diary doesn't care about them as long as the Content-type is application/vnd.wap.mms-message
(if it's not it will simply reject the message, perhaps your phone is sending it with a weird content-type?) |
|
| Back to top |
|
 |
trevi
Joined: 13 Nov 2003 Posts: 10
|
Posted: Mon Mar 29, 2004 4:57 pm Post subject: |
|
|
| THX will try this later on today! |
|
| Back to top |
|
 |
trevi
Joined: 13 Nov 2003 Posts: 10
|
Posted: Tue Apr 13, 2004 12:17 am Post subject: |
|
|
Hey Stefan,
I tested it more then once but it will not work
Now I am mailing it to an emailadres. Isn't there a possibilty to have
a script read the pop3 mailbox and then post it to send.php?
I have cronjob etc so that is not the problem. But is there a possibilty to have
it work that away?
Owyeah, I can only make a mailbox or a forwarder. I can not use the recmail.pl!  |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Tue Apr 13, 2004 8:51 am Post subject: |
|
|
I see.
Yes, it would be possible of course to pop the mail off a mail account. But, but, but...it would be a bit awkward to then post it towards send.php because you would have to encode the mime-multipart that is the email to the binary mms format because send.php accepts only that format - the format sent by the phones. So that would require much work from your side as my current mmslib does only do decoding and not encoding. Encoding is just as complicated as decoding so it would require much studying of the mms specifications at wapforum. Therefore I think that in that case your best bet is to avoid send.php altogether and simply just use some library that decodes an email instead (or use a program such as munpack that I use in Peffisaur) and, if you want to use MMS Diary or Peffisaur to display the messages, stores the parts as send.php does. |
|
| Back to top |
|
 |
|