explain cookie header for downloading java