Lukeidiot Posted November 4, 2012 Share Posted November 4, 2012 Is it possible for a site to block cURL? Here's my code that was working about a month ago: <?php $tumblr_email = 'firstname.lastname@example.org'; $tumblr_password = 'pass'; $request_data = http_build_query( array( 'email' => $tumblr_email, 'password' => $tumblr_password ) ); $c1 = curl_init('http://www.tumblr.com/login'); curl_setopt($c1, CURLOPT_POST, true); curl_setopt($c1, CURLOPT_POSTFIELDS, $request_data); curl_setopt($c1, CURLOPT_RETURNTRANSFER, true); curl_setopt($c1, CURL_COOKIEFILE, 'cookie.txt'); curl_setopt($c1, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt($c1, CURLOPT_FOLLOWLOCATION,true); $result1 = curl_exec($c1); echo $result1; curl_close($c1); ?> Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.