After a couple of weeks of trial-and-error and debugging, we
have finally been able to log in to the game successfully. Bugs
fixed: set the HttpURLConnections to not automatically follow
redirections; sending multiple cookies by delimiting them with a
comma (,) does not work, but using a semicolon (;) works nicely