bogdanroxanutza Posted December 17, 2009 Share Posted December 17, 2009 Hello, I have a problem with curl and sessions and i will try to explain the best i could. 01. I want to download a file from (http://subdomain.example.com/name-13075.html) with curl. 02. The problem is: when i access (http://subdomain.example.com/name-13075.html) a cookie is stored with name (PHPSESSID), content(23ad67e9f817407224d7bdc367c040a4), domain(.example.com), path(/). 03. Another thing that i find is: when i am on (http://subdomain.example.com/name-13075.html) i can download that file but if i access the download link in a new tab i get "Download failed". And i try like a week to get this done but with no results. Anybody could help me? I really need to get this done and i really apreciate any help. If you could show me an example or something would be great. Thanks a lot and sorry for my bad english. Link to comment https://forums.phpfreaks.com/topic/185452-curl-sessions-pls-help/ Share on other sites More sharing options...
rajivgonsalves Posted December 17, 2009 Share Posted December 17, 2009 you will need to set a cookie file for this check out these options in curl CURLOPT_COOKIEFILE, CURLOPT_COOKIEJAR examples can be seen here, search for "cookie" http://www.php.net/manual/en/function.curl-setopt.php Link to comment https://forums.phpfreaks.com/topic/185452-curl-sessions-pls-help/#findComment-979105 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.