Re: Heades in Async redirect

2014-04-01 Thread Yoram Dayagi (Gmail)
the correct approach. --  Yoram Dayagi (Gmail) Sent with Airmail On April 1, 2014 at 12:15:58 PM, Lukáš Křečan (lu...@krecan.net) wrote: Hi, I am using httpasyncclient 4.0.1 and I am setting custom Accept header. The server returns 302 redirect, the client correctly follows the location header

Re: Redirect erases header?

2014-02-17 Thread Yoram Dayagi (Gmail)
, --  Yoram Dayagi (Gmail) Sent with Airmail On February 16, 2014 at 5:06:34 PM, Yoram Dayagi (Gmail) (yor...@gmail.com) wrote: Hi I’m using HttpAsyncClient to execute an async request. I noticed that when requesting a GET request for a URL that redirects to another, a header I put

Re: How can I abort an aynsc request using HttpAsyncClient

2014-02-17 Thread Yoram Dayagi (Gmail)
(); …         } … Also, I read in documentation that using “shutdown” on a channel is bad for SSL connections, where “close” should be called instead. Thanks, Yoram On February 17, 2014 at 11:16:03 AM, Oleg Kalnichevski (ol...@apache.org) wrote: On Sun, 2014-02-16 at 16:30 +0200, Yoram Dayagi (Gmail) wrote

Re: How can I abort an aynsc request using HttpAsyncClient

2014-02-17 Thread Yoram Dayagi (Gmail)
, the consumer’s onByteReceived is never called after this point. Thanks, Yoram On February 17, 2014 at 11:46:15 AM, Oleg Kalnichevski (ol...@apache.org) wrote: On Mon, 2014-02-17 at 11:23 +0200, Yoram Dayagi (Gmail) wrote: I want to start an async GET request for a big file. Then, at some

How can I abort an aynsc request using HttpAsyncClient

2014-02-16 Thread Yoram Dayagi (Gmail)
Hi I would like to use HttpAsyncClient in order to execute async requests. Is it possible to abort an executing request from another thread? Thanks, --  Yoram Dayagi (Gmail) Sent with Airmail

Redirect erases header?

2014-02-16 Thread Yoram Dayagi (Gmail)
the redirected URL the execution is as expected (only first 1000 bytes are returned) 2. The response of the original URL doesn’t contain a header Accept-Ranges: bytes”, where as the response of the redirected URL does contain this header. How can I overcome this problem? --  Yoram Dayagi (Gmail) Sent