Details
Description
The rest connector has to define it's own redirection behavior.
Currently, the default http client implementation is based on the jvm HttpURLConnection which follow redirection by default.
To test my own implementation of reidrection I set : HttpURLConnection.setFollowRedirects(false); in unit test.
But in real runtime, redirections are followed. It should be good to be able in the Connection interface of TCK to have a method setFollowRedirect:
https://github.com/Talend/component-runtime/blob/master/component-api/src/main/java/org/talend/sdk/component/api/service/http/Configurer.java#L35
with the default http client, it will call https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html#setInstanceFollowRedirects(boolean)