Php 节日网的网络垃圾问题

Php 节日网的网络垃圾问题,php,Php,我正在尝试从Festival Net中删除事件列表数据。只有在登录后才能检索。我使用Curl在PHP中进行了尝试。但无法登录festivalnet页面,我正在用curl发布参数 //username and password of account $login_username = 'abcd'; $password = 'xxxx'; //login form action url $form_url="https://festivalnet.com/cgi-bin/festbiz2/db

我正在尝试从Festival Net中删除事件列表数据。只有在登录后才能检索。我使用Curl在PHP中进行了尝试。但无法登录festivalnet页面,我正在用curl发布参数

//username and password of account
$login_username = 'abcd';
$password = 'xxxx';


//login form action url
$form_url="https://festivalnet.com/cgi-bin/festbiz2/db.cgi"; 


$postinfo = "userid=".$login_username."&pw=".$password.'&db=festbiz&login=1';


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $form_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo);    
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 

echo curl_exec($ch);
它重定向到


请帮忙

试试CURLOPT_COOKIEFILE和CURLOPT_COOKIEJAR


用法如图所示

如果他们没有API,他们可能不想让你知道答案。但我还是尝试过。因为我知道我会成功。