php curl login and download file