I get the exception below when testing an url that try to set a cookie
java.net.ProtocolException: Server redirected too many times (20)