Exoon Posted December 19, 2010 Share Posted December 19, 2010 Hello, Ive got a script that downloads a file to my server. I want to be able to download a file from a site such as FileServe using my premium details. Ive tried http://username:password@fileserve.com/file.rar but that dosent work, It just downloads a tiny small 30kb file. Is there a way i can set a cookie or somthing so my script has access to download file using my premium account? Thanks in advance Quote Link to comment Share on other sites More sharing options...
mattal999 Posted December 19, 2010 Share Posted December 19, 2010 You'll need to login to the website via cURL. Here's an example: http://www.phpfreaks.com/forums/php-coding-help/php-login-to-other-site-using-curl/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.