hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yoram Dayagi (Gmail)" <yor...@gmail.com>
Subject Redirect erases header?
Date Sun, 16 Feb 2014 15:06:32 GMT
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 in the request ("Range: bytes=0-1000") is ignored and all content is returned in the

1. When accessing directly 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 with Airmail
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message