Download File From Remote Server
Hi
I need to make a script to download files from a remote webserver.
The files will be approximately 200 MB.
How can I do this, and (I'm not sure if it's possible, but) how can I download files from a site that requires me to login before downloading.
I've used cURL before to post form data but I'm not sure if it can download binary files after logging in.
Re: Download File From Remote Server
Sure you can. You just need to make sure to send the session cookie along.
Re: Download File From Remote Server
Ok thanks, how would I do that?
Re: Download File From Remote Server
Either cURL does it by itself, if it can handle cookies, or you process the Set-Cookie header that comes with the login response and send it along with the download request using the Cookie header.