Page 1 of 1

Curl login to https

Posted: Mon Jun 22, 2009 12:43 am
by rupam_jaiswal
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

Re: Curl login to https

Posted: Mon Jun 22, 2009 7:11 am
by patrickmvi
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.