curl gives 403 error?

Saishache

New Member
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. 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.Unfortunately, even the basic script like this:\[code\]curl_setopt($ch, CURLOPT_URL, "http://www.mydomain.com/ForumLogin.php");curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);curl_close($ch);\[/code\]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?
 
Back
Top