tobydawson13 Posted January 1, 2010 Share Posted January 1, 2010 Hi there, I'm not a regular here at PhpFreaks, but I was wondering if someone could help me out with this script I've been working on. To login to Craigslist using php/curl. Here's the code I have so far: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://accounts.craigslist.org/login'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, 'inputEmailHandle=myemail&inputPassword=mypassword'); curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec ($ch); curl_setopt($ch, CURLOPT_URL, 'https://accounts.craigslist.org'); curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec ($ch); echo $content; curl_close ($ch); ?> For your generousity in helping me out, I am more than willing to send a bit of paypal, to anyone who helps me out Thanks. Link to comment https://forums.phpfreaks.com/topic/186852-craigslist-account-login-script-using-curl/ Share on other sites More sharing options...
darkis Posted May 11, 2010 Share Posted May 11, 2010 Hi, If you still need help i can help you Link to comment https://forums.phpfreaks.com/topic/186852-craigslist-account-login-script-using-curl/#findComment-1056261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.