On Sun, 2016-10-09 at 00:59 -0400, Arya F wrote:
> I have also asked about this on Stackoverflow and have not gotten any
> solutions. Here is the link to the question but I will also explain it here
>
> http://stackoverflow.com/questions/39939509/get-location-header-from-204-
> response
>
>
> I am working with a request which responses with a 204 status code which
> means no response. But the response does contain headers. I am trying to
> get the value of the "Location" response header. I have tried the
> context.REDIRECT_LOCATIONS and it is null which always worked when the
> response code was not 204.
>
> How can I retrieve the value of the Location response header?
Header location = response.getFirstHeader("location");
Oleg
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org