|
-
Oct 29th, 2006, 02:59 AM
#1
Thread Starter
Fanatic Member
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.
-
Oct 29th, 2006, 10:51 AM
#2
Re: Download File From Remote Server
Sure you can. You just need to make sure to send the session cookie along.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 29th, 2006, 10:53 AM
#3
Thread Starter
Fanatic Member
Re: Download File From Remote Server
Ok thanks, how would I do that?
-
Oct 29th, 2006, 10:55 AM
#4
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|