You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Adrian German <dg...@cs.indiana.edu> on 2004/02/11 16:10:12 UTC

compressed body in HTTP POST request; using Jabber for IM

Folks, I have a question and I hope that someone could help me clarify
it.

RFC 2616 says that the presence of a message-body in a request is
signaled by the inclusion of a Content-Length or Transfer-Encoding
header field in the request's message-headers.

The question I have is this:

  Does the RFC allow a POST request to contain "Transfer-Encoding: gzip"
  header *followed* by a compressed body? Does Tomcat support the
  processing of such a request? Does Apache? If they don't and we try to
  extend the sources to accommodate this, would that be a possible breach
  of specs?

The application we are building involves a few hundred (perhaps thousand)
devices/stations which are distributed in a fairly large territory (say,
the size of Indiana) which act as mini-browsers and send information to a
server (to which they connect, authenticate and all that) periodically.
Now the line on which they communicate is dial-up (gsm/gprs), so being
able to compress the POST requests would keep the costs down. Also, these
stations/browsers might be behind a firewall, so the TCP connection can
only be initiated from a station to the server and not the other way
around.

We were thinking of using either Tomcat or JBoss for the server, and
it was not clear to us if the server would be able to handle properly a
compressed request. If it does it already then maybe we missed it, and
we apologize and we'd be very grateful for any pointers.

One last question would be about the relative performance of compressed
HTTP vs. technologies currently used for Instant Messaging such as
Jabber. I know that this is too general but I'd be very interested to
know if (in your experience, or just in your opinion) Jabber-like
technologies are clearly superior, or clearly inferior, or simply not
comparable with compressed HTTP for the kind of applications mentioned
above (ministations in the field connecting to server periodically and
transmitting data). I thank you in advance and am looking forward to any
replies.

... Adrian

P.S. Granted this may not be the forum to ask such a question.
In that case let me just take back all of the above back and simply
wish you a Happy Wednesday! ;-)



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org


Re: compressed body in HTTP POST request; using Jabber for IM

Posted by Serge Knystautas <se...@lokitech.com>.
Adrian German wrote:
> The application we are building involves a few hundred (perhaps thousand)
> devices/stations which are distributed in a fairly large territory (say,
> the size of Indiana) which act as mini-browsers and send information to a
> server (to which they connect, authenticate and all that) periodically.
> Now the line on which they communicate is dial-up (gsm/gprs), so being
> able to compress the POST requests would keep the costs down. Also, these
> stations/browsers might be behind a firewall, so the TCP connection can
> only be initiated from a station to the server and not the other way
> around.
> 
> We were thinking of using either Tomcat or JBoss for the server, and
> it was not clear to us if the server would be able to handle properly a
> compressed request. If it does it already then maybe we missed it, and
> we apologize and we'd be very grateful for any pointers.

Have you considered sending information using SMTP and zip attachments? 
  You could then use James (http://james.apache.org) to handle the zips 
and do whatever is appropriate.

You would still need a minibrowser for retrieving information, but this 
might be an efficient way to send data from lots of clients.  SMTP is 
easy for the client, and while James isn't as friendly to develop with 
as I'd like, it could work.  Just a random idea.

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org


Re: compressed body in HTTP POST request; using Jabber for IM

Posted by Tom Copeland <to...@infoether.com>.
On Wed, 2004-02-11 at 10:10, Adrian German wrote:
> One last question would be about the relative performance of compressed
> HTTP vs. technologies currently used for Instant Messaging such as
> Jabber. I know that this is too general but I'd be very interested to
> know if (in your experience, or just in your opinion) Jabber-like
> technologies are clearly superior, or clearly inferior, or simply not
> comparable with compressed HTTP for the kind of applications mentioned
> above (ministations in the field connecting to server periodically and
> transmitting data). I thank you in advance and am looking forward to any
> replies.

There's been a fair bit of work done at my job site on Jabber wrapped in
Ruby - http://rubyforge.org/projects/jabber4r/ - to connect to servers
and send status messages for a distributed agent society -
http://cougaar.org/.   The status messages we're sending around are
usually pretty small - they top out at about 20K - so this may not be
comparable to what your doing.

FWIW, I think Jabber might add a bit more complexity then you need -
Jabber is a messaging protocol and so it's tuned for little messages
flying all over the place.  What you're doing sounds like a good match
for the things you suggested - compressed HTTP, zipped SMTP as Serge
suggested, or maybe even FTP.

Yours,

tom


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org