title: PHP cURL: How do I make it visit this website before continuing?
body: <p>I am passing post data to a website, but I have to visit the homepage first before I can navigate to any other parts of the website. So how can I do that? Do I just use a header redirect and then have it execute the rest of the cURL?</p>
  
  <p>Update:</p>
  
  <p>I think this might be better than the solution below: <a href="http://coderscult.com/php/php-curl/2008/05/20/php-curl-cookies-example/" rel="nofollow noreferrer">http://coderscult.com/php/php-curl/2008/05/20/php-curl-cookies-example/</a></p>