N-Bomb(Nerd) Posted June 19, 2010 Share Posted June 19, 2010 Hi all, I'm trying to curl into a website to pull some information, but the website requires a login and has a captcha. I'm able to click the "remember me" tick box and have a permanent login via cookie. I used a sqlitebrowser and pulled the cookie information from my firefox cookie database, however I have no idea on how to reconstruct the information into a useable format. I understand what all of the values do/are, it's just placing them into a file accordingly. I've tried following this guideline without any success: http://blog.omnux.com/index.php/2008/03/25/cookiestxt-file-format/ I would post the actual cookie information, but this is to a very sensitive website where I can't risk somebody compromising my account. What should I do? Link to comment https://forums.phpfreaks.com/topic/205231-curl-cookie-problem/ Share on other sites More sharing options...
N-Bomb(Nerd) Posted June 19, 2010 Author Share Posted June 19, 2010 Project is on a complete halt until I can get this sorted. I'm using this code just to test around with: $ch = curl_init(); $options = array ( CURLOPT_URL => "http://website.com", CURLOPT_COOKIEFILE => "./logins/cookies.txt", CURLOPT_COOKIEJAR => "./tmp", CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3', ); curl_setopt_array($ch, $options); $output = curl_exec($ch); curl_close($ch); echo $output; cookies.txt (slightly modified to keep myself secure): .website.com TRUE / FALSE 1308446408 msec e5eedfba217de99d7c4c657bc1f7876f .website.com TRUE / FALSE 1308446408 pass_hash 824c8729c9ag3345hd43g48d33a8 .website.com TRUE / FALSE 1308446408 member_id 236231 .website.com TRUE / FALSE 1308446408 session_id 4e1ba4561344g3f34433gs29404fd I've ran the code and it's still not showing me as logged in.. Link to comment https://forums.phpfreaks.com/topic/205231-curl-cookie-problem/#findComment-1074278 Share on other sites More sharing options...
N-Bomb(Nerd) Posted June 19, 2010 Author Share Posted June 19, 2010 I've been trying to figure this out constantly now for the last four hours straight.. still not making any progress with this. Link to comment https://forums.phpfreaks.com/topic/205231-curl-cookie-problem/#findComment-1074315 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.