Le 30/10/14 18:13, Marek Sedlak a écrit :
> Hello!
Hi,
> I have implemented tcp server based on apache mina. it holds tcp
> connections and communicate vice versa with clients. now i need to
> implement acceptor the way it accepts data using TextLineCodecFactory but
> at the same time it can read http request and resend it, then the reply
> pass back to the session.
>
> i have implemented that after "messageReceived" i just put messages into
> string with \r\n, then in the end i have plain http request. I send it to
> the server, server replies, I receive reply and send it to the initial
> connection from client. This is some kind of proxy server.
>
> Now everything works EXCEPT that when I receive either message from client
> or from http server (the last phase) and request/response has
> content-length higher than 0 (request with post/patch and/or the usual
> response) I will end up where HTTP headers end, no matter what I do, I just
> do not get the BODY itself,

I suspect you are dealing with the content of your messages yourself, am
I right ? Or are you using teh MINA HTTP codec ?



Reply via email to