We developed a j2me application on series 40 phone. The app server will constantly push message to j2me client. We choose http 1.1 Encoding-type: chunked to do that. The application works fine on series 40 emulator and Sun's J2MEWTK 1.04, but got java.io.exeception in the phone.

The http reply from server is:
HTTP/1.1 202 Accepted
Date: Fri, 20 Dec 2002 05:43:19 GMT
Server: Microsoft-IIS/6.0
Content-Type: text/plain
Transfer-Encoding: chunked
Expires: Fri, 20 Dec 2002 05:43:19 GMT

The http request send out from 6610 contains http header like following. Seem lots of wap header. Is it added by telco's wap gateway?

POST / HTTP/1.1

x-up-uplink: lh-base.starhub.com.sg

Profile: http://nds.nokia.com/uaprof/N6610r100.xml

X-WAP.TOD: 00

host: host.justyak.com:8080

Accept-Language: en

User-Agent: Nokia6610/1.0 (3.09) Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Link/5.1.0.2

x-up-devcap-max-pdu: 65535

x-up-devcap-charset: iso-8859-1, utf-8;q=0.8, iso-10646-ucs-2;q=0.6

x-up-WTLS-info: off

Connection: close

SKEY:

x-up-wappush-secure: www.openwave.com:9003/pap

Content-Type: text/plain

Accept: */*, */*

x-up-wappush-unsecure: www.openwave.com:9002/pap

Content-Length: 25

Accept-Charset: iso-8859-1, utf-8;q=0.8, iso-10646-ucs-2;q=0.6, UTF-8, *



S