But they are not exposed to entity.getContent(), how do I access them?
On Thu, Sep 19, 2013 at 2:12 PM, Oleg Kalnichevski <[email protected]> wrote: > On Thu, 2013-09-19 at 13:56 -0700, Hans Uhlig wrote: > > no, I am only getting the first of the 3 chunks of data. Which is the CSV > > header. I should get 3 chunks of content, 1 header and 2 blocks of rows. > > When I pull content via Entity.getContent() it only returns the CSV > Header > > > > I can clearly see at least two chunks (chunks in terms of HTTP chunk > coding) making 14920 bytes of content. Given those chunks show up in the > wire log they have been read and processed by HttpClient. > > Oleg > > > > > On Thu, Sep 19, 2013 at 1:39 PM, Oleg Kalnichevski <[email protected]> > wrote: > > > > > On Thu, 2013-09-19 at 13:26 -0700, Hans Uhlig wrote: > > > > They don't appear in the entity when I use getContent() is there > another > > > > way I should get the additional chunks? > > > > > > > > > > What are you referring to as 'they'? Chunk headers? Chunk-coded content > > > gets transparently decoded by HttpClient. Chunk headers are not > supposed > > > to appear in the content stream. > > > > > > Oleg > > > > > > > > > > > On Thu, Sep 19, 2013 at 1:17 PM, Oleg Kalnichevski <[email protected] > > > > > wrote: > > > > > > > > > On Thu, 2013-09-19 at 12:16 -0700, Hans Uhlig wrote: > > > > > > > > > > ... > > > > > > > > > > > 2013/09/19 12:14:59:908 PDT [DEBUG] wire - http-outgoing-0 << > > > "HTTP/1.1 > > > > > 200 > > > > > > OK[\r][\n]" > > > > > > 2013/09/19 12:14:59:910 PDT [DEBUG] wire - http-outgoing-0 << > > > > > > "Content-Encoding: gzip[\r][\n]" > > > > > > 2013/09/19 12:14:59:910 PDT [DEBUG] wire - http-outgoing-0 << > > > > > > "Transfer-Encoding: chunked[\r][\n]" > > > > > > 2013/09/19 12:14:59:910 PDT [DEBUG] wire - http-outgoing-0 << > > > "[\r][\n]" > > > > > > 2013/09/19 12:14:59:910 PDT [DEBUG] wire - http-outgoing-0 << > > > > > "6d[\r][\n]" > > > > > > > > > > ... > > > > > > > > > > > 2013/09/19 12:14:59:910 PDT [DEBUG] wire - http-outgoing-0 << > > > > > "39bd[\r][\n]" > > > > > > > > > > ... > > > > > > > > > > > 2013/09/19 12:14:59:983 PDT [DEBUG] wire - http-outgoing-0 << > > > "0[\r][\n]" > > > > > > 2013/09/19 12:14:59:983 PDT [DEBUG] wire - http-outgoing-0 << > > > "[\r][\n]" > > > > > > > > > > As far as I can tell the server sends two chunks of data 0x6d + > 0x39db > > > > > in length and ten correctly terminates the stream. I also see > nothing > > > > > wrong in HttpClient's handling those chunks either. > > > > > > > > > > Oleg > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [email protected] > > > > > For additional commands, e-mail: > [email protected] > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
