title: curl - how to go to the next page?
body: <p>I successfully logged in using curl.</p>
  
  <pre><code>$ch = curl_init('http://site.com/login');
  // setting posts, cookies file, headers 
  curl_exec($ch);
  </code></pre>
  
  <p>Then, while logged in, I need to go to other page, lets say <code>http://site.com/profit</code> to do some stuff. </p>
  
  <p>But how?<br>
  Should I run other php's script with <code>$ch = curl_init('http://site.com/profit')</code>, or is it possible to do in one file? How it should be done?</p>