Update FileTransfer.java

Workaround for cookiemanager