I want to know what are the header properties used by Blackberry default browser session. Since my http connection needs all the browser session header properties like Accept-Language,Accept-Encoding,Keep-Alive.
Asked
Active
Viewed 240 times
1
-
I didn't get. Do you need to add them or just verify/know what are the values? – Eugen Martynov Dec 27 '11 at 07:00
-
@Eugen Martynov : Thank you for reply. Since my application portal address works correctly in browserfield and browser session displays xml response but not working in http connection,We need the browser headers properties to set for http connection. – Gopinath Dec 27 '11 at 12:25
1 Answers
0
If you have access to HttpConnection
instance (it's not a BrowserField
) you can set them yourself:
c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");

Eugen Martynov
- 19,888
- 10
- 61
- 114
-
Actually you can get access to HttpConnection for BrowserField also – Eugen Martynov Dec 27 '11 at 15:38