curl gives 403 error?
问题 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 curl would be the best option. Unfortunately, even the basic script like this: curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php"); curl_setopt($ch, CURLOPT