title: curl gives 403 error?
body: <p>I'm trying to set a cookie for my phpBB forums from a MediaWiki login page. Using the hook after a login to the wiki is successful, I want to run a php script that sets the cookie. </p>
  
  <p>The script works when I run it independently or when I use GET , but for security reasons I want to POST to the script. For this I figured <code>curl</code> would be the best option.</p>
  
  <p>Unfortunately, even the basic script like this:</p>
  
  <pre><code>curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>Gives me a 403 Forbidden error. There's no rules in robots.txt that should interfere. What else could I try to get the script to work, or are there any other ways I could run the script from within MediaWiki?</p>