Hi all,
I was trying to make http connection in a midlet.
HttpConnection hc=(HttpConnection)Connector.open(url, Connector.READ_WRITE, true);
hc.setRequestMethod(HttpConnection.GET);
And I want to get handset mobile model info at the server end. My server end is a servlet, I am using request.getHeader. But not getting any header information.
Enumeration hdrs = request.getHeaderNames();
if(hdrs != null)
{
while(hdrs.hasMoreElements())
{
hcName = (String)hdrs.nextElement();
hcValue = (String)request.getHeader(hcName);
wui.setLOG(" name : " + hcName + ", value : " + hcValue + "\r\n");
}
}
I am getting this at server end
HOST: xx.xx.xx.xx
CONNECTION: close
Please help
vaish.ankur@gmail.com
yahoo id vaish_ankur_cdac@yahoo.com


Reply With Quote

