Curl login to https

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
rupam_jaiswal
Forum Newbie
Posts: 22
Joined: Thu Jun 05, 2008 12:54 am

Curl login to https

Post 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
patrickmvi
Forum Commoner
Posts: 32
Joined: Mon Jun 22, 2009 6:45 am
Location: Fort Lauderdale, FL

Re: Curl login to https

Post 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.
Post Reply