logo       

Re: using jetty as an wap server: msg#00013

java.jetty.general

Subject: Re: using jetty as an wap server


To answer your direct question - you can add a Filter that adds a
Connection:close
to every response object.

But that SHOULD not be required???
If the client cannot accept a chunked response, it should not be generating a
http/1.1
request. Can you dump the request you receive (turn on -DDEBUG) and see what
it
looks like?

If it is
GET /foo.wml HTTP/1.1
Then the client is saying that it does support chunked responses! So complain to
your WAP gateway that they are not handling chunking correctly.

cheers



martin@xxxxxxxx wrote:
hello list,

I want to use the jetty server as an wap server. I upload the wml file(s) and added the mime-type settings in the config
file (server.xml) using the "setMimeMapping" attribut. that's works fine.

My problem is that the server returned a chunked response. (http 1.1:
HTTP
Chunking). The WinWAP works, but my mobile phone doesn't.
How can i configure jetty to add a "connection: close" http header in the
response (to omit the chunking of only the wap context)

THX
greetings
Martin
Germany


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise