How to read SMS original user-agent

How to read SMS original user-agent SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 21, 2007 » How to read SMS original user-agent « Previous || Next »
Author Message
Ronny Voss
New member
Username: Ronnyniroitdk

Post Number: 10
Registered: 10-2006
Posted on Thursday, March 08, 2007 - 01:08 pm:   

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
Posted on Thursday, March 08, 2007 - 01:27 pm:   

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
Posted on Thursday, March 08, 2007 - 04:33 pm:   

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

Login Login / Register Logout Logout Search Last 30 Days Topics Topics