Hi,
Please excuse if similar issue has been posted earlier.
My scenario is
Login to a https site .
Once I login,I find a link to download a file.
Now all this I want to do with the help of curl.
I want the script in PHP for
1) login to https site
2)download the file?After applying the regex,I can get the link of the file easily but problem comes for downloading the file?Do I have to use JavaScript for that or use location header to redirect to file download link?
Thanks in advance
Curl login to https
Moderator: General Moderators
-
patrickmvi
- Forum Commoner
- Posts: 32
- Joined: Mon Jun 22, 2009 6:45 am
- Location: Fort Lauderdale, FL
Re: Curl login to https
You may need to download the file on the server side and then do a header redirect to the file on your server. Can you give more details.