note 60701 deleted from function.curl-setopt by nlopess

From: Date: Sat, 14 Jan 2006 13:11:39 +0000
Subject: note 60701 deleted from function.curl-setopt by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101749@lists.php.net to get a copy of this message
Note Submitter: Nazin ---- I've got this code: <?php $cookie = 'cookie.txt'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.examplesite.com/login.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'username=Login&password=pass'); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec($ch); curl_setopt($ch, CURLOPT_URL, 'http://www.examplesite.com/members/index.php?go=next'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($ch); echo $content; curl_close($ch); echo '<meta http-equiv="Refresh" content="2">'; ?> This is for simply autoclicker but, this only work one time, why? It goes to http://www.examplesite.com/members/index.php?go=next nad if it refresh page is in the same place. Why? Could you help me?

« previous php.notes (#101749) next »