Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26293

Re: How to get the size of the HTTPResponse

X-Received by 10.182.247.102 with SMTP id yd6mr4566086obc.39.1381425609057; Thu, 10 Oct 2013 10:20:09 -0700 (PDT)
X-Received by 10.50.22.35 with SMTP id a3mr354386igf.17.1381425609005; Thu, 10 Oct 2013 10:20:09 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i2no4714976qav.0!news-out.google.com!9ni26711qaf.0!nntp.google.com!i2no4714946qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Thu, 10 Oct 2013 10:20:08 -0700 (PDT)
In-Reply-To <5256158d$0$293$14726298@news.sunsite.dk>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:2e00:8a51:fbff:fe5b:7842; posting-account=frbrOwoAAADWDTNvWWYEzGYSZujss3ze
NNTP-Posting-Host 2620:0:1000:2e00:8a51:fbff:fe5b:7842
References <06aca5db-af01-4251-b5e4-ce24a677e7b5@googlegroups.com> <5256158d$0$293$14726298@news.sunsite.dk>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <3281b0ef-b6d8-445b-adc6-36735aa934fc@googlegroups.com> (permalink)
Subject Re: How to get the size of the HTTPResponse
From Kiran Bagga <kbagga@gmail.com>
Injection-Date Thu, 10 Oct 2013 17:20:09 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:26293

Show key headers only | View raw


I am using servlet filters. The output body is stored in the OutputStream. I cant seem to find a way to extract the body from it and calculate the size. Any suggestions?

On Wednesday, October 9, 2013 7:48:45 PM UTC-7, Arne Vajhøj wrote:
> On 10/9/2013 7:54 PM, Kiran Bagga wrote:
> 
> > Maybe I am over thinking this or doing something dumb, But I cant
> 
> > seem to extract the right size of the HttpResponse object on the
> 
> > server side. I need it to log the number of response bytes. Any
> 
> > suggestions??
> 
> 
> 
> Servlet filter?
> 
> 
> 
> Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to get the size of the HTTPResponse Kiran Bagga <kbagga@gmail.com> - 2013-10-09 16:54 -0700
  Re: How to get the size of the HTTPResponse markspace <markspace@nospam.nospam> - 2013-10-09 17:17 -0700
  Re: How to get the size of the HTTPResponse Arne Vajhøj <arne@vajhoej.dk> - 2013-10-09 22:48 -0400
    Re: How to get the size of the HTTPResponse Kiran Bagga <kbagga@gmail.com> - 2013-10-10 10:20 -0700
      Re: How to get the size of the HTTPResponse Robert Klemme <shortcutter@googlemail.com> - 2013-10-10 23:05 +0200
      Re: How to get the size of the HTTPResponse Arne Vajhøj <arne@vajhoej.dk> - 2013-10-10 22:59 -0400
        Re: How to get the size of the HTTPResponse Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-10-13 09:45 +0200
  Re: How to get the size of the HTTPResponse Roedy Green <see_website@mindprod.com.invalid> - 2013-10-17 15:43 -0700

csiph-web