How to read SMS original user-agent | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 21, 2007 ⬆ |
◄ ► |
Author | Message | |||
Ronny Voss New member Username: Ronnyniroitdk Post Number: 10 Registered: 10-2006 |
Hi We have this 2-way SMS setup. Routing SMS to Servlet works fine. I should be able to identify sending phone model threw http header user-agent. But it seems like NowSMS overwrites that value (and perhaps other also). I did search inforum to sind a solution ! Here is what i get when i iterate over http headers in forwarded request: 13:54:29,627 INFO [STDOUT] Name=user-agent value=Now SMS/MMS Gateway v2006.03.09 13:54:29,627 INFO [STDOUT] Name=accept value=*/* 13:54:29,627 INFO [STDOUT] Name=connection value=Close 13:54:29,627 INFO [STDOUT] Name=host value=localhost:8080 How can i fetch original values in general ? | |||
Ronny Voss New member Username: Ronnyniroitdk Post Number: 11 Registered: 10-2006 |
Ha Ha Never mind - i found out myself. I was testing accesing servlet threw SMS and NOT mobilephone browser. | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6962 Registered: 10-2002 |
Hi Ronny, Yes, you are correct. You cannot determine the user-agent of the phone through an SMS request sent by the phone. The mobile phone browser needs to initiate a request to your server in order for you to see the user-agent string. -bn |