User Agent | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through February 20, 2004 ⬆ |
◄ ► |
Author | Message | |||
Yoram Givon New member Username: Yoram_gi Post Number: 4 Registered: 11-2003 |
Hi, Is there a way for me to intercapt the user phone UserAgent when he sends the request for the MMS and act acordingly? I want to be able to send the user an MMS based on his phone model from a Java application I am writing. Yoram | |||
Yoram Givon New member Username: Yoram_gi Post Number: 5 Registered: 11-2003 |
Just to be clear, the MMS files are pre-made by me for each phone. I do not want to use the MMSC to reformat the images based on its profiles. Yoram | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1293 Registered: 10-2002 |
If you are sending the MMS messages through an MMSC, no, there is not. If you are generating MMS notifications, then the mobile is directly retrieving a URL that you specify in the notification ... and with that, you could look at the User-Agent header just like the MMSC can. | |||
Yoram Givon New member Username: Yoram_gi Post Number: 7 Registered: 11-2003 |
well, this sounds great , however one more question: it is noted on the help documentation that the GW will validate that the MMS message file is of the MIME type application.... , and is of the MMS message type m-retrive-conf. I failed to understand this comment, does it mean that the server will actualy check to see if the URL is valid before send the notification? Does it mean I can not use a fake MMS file in the URL? I am asking this since I plan to change the actual MMS file based on the user agent I retrive from the user, so for example: http://127.0.0.1:8080/?PhoneNumber=xxx&MMSURL=name.domain/path/default.mms will point to a fake mms file, which I will replace with the actual one based on the userAgent Yoram | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1319 Registered: 10-2002 |
Hi Yoram, When you tell NowSMS to send the notification, it will perform a GET of the URL with a User-Agent string of "Now SMS/MMS Gateway" (plus some version info). So you can know that when you receive this request, it is just a validation to make sure that the URL is ok, and behave accordingly. -bn |