I have my client configured like this:
Response responseQueries = client.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.TRUE)
.target(baseUri + "/queries")
.request()
.post(Entity.entity(QueriesRequest.of(date, accountNumbers), MEDIA_TYPE));
but as I call it, 303 with Location header is coming in the response, but no redirect happens.
I tried to set a redirect property to a webTarget like this:
Response responseQueries = client
.target(baseUri + "/queries")
.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.TRUE)
.request()
.post(Entity.entity(QueriesRequest.of(date, accountNumbers), MEDIA_TYPE));
but the result was identical. No redirect being applied.
Both URLs have the same protocol (https), both have the same baseUri.
Am I doing something wrong?