Hi,
I've a MIDlet that use HTTPConnection (POST) to establish a connection to a servlet.
I try to use URL-rewriting for Session Tracking:
SERVLET
HttpSession session = req.getSession(true);
if (session.isNew()){
String sIncomingURL = req.getRequestURL().toString();
String sURLwithID = res.encodeURL(sIncomingURL);
res.setHeader("rewritingURL", sURLwithID);
}
Why in my MIDlet this http.getHeaderField("rewriting URL") return always null value?:
MIDLET
//##### URL-Rewriting #####
sServletURLWidthID = http.getHeaderField("rewriting URL");
if (sServletURLWidthID != null) _sURLServlet = sServletURLWidthID;
sServletURLWidthID is always null
Can it be the WAP Gateway?
Which type of Gateway do I have to use?
Thanks.
Massimiliano

Reply With Quote

