Im trying to add header information to refresh page. Im programming services in JSP, so im using something like response.addHeader...
When i used this notation in ASP, there is no problem with that, but with this there are problems on phone. When i try to open this page in browser, it works, but when i open it on phone, it doesnt open requested page, but reloads itself (recursively).
I tried to catch traffic via wireshark and i dont see any problem there (see attachement).
Many thanks in any advance!
Here's the java code I'm using and I've never had any problems with it:
response.setHeader("Refresh", + refreshDelay +"; URL=" + url);
The refresh header format may not be quite right (missing 'url=' and some spacing)
Yours: Refresh: 1;http://www.example...
Example: Refresh: 1; url=http://www.example...
It's possible your browser may be more forgiving in parsing this field than the phone is, and since the phone doesn't parse out the alternate destination URL, it ignores that part and just refreshes the current page.