cURL填写网络表单|跨域请求被阻止|第三方网站

时间:2018-07-25 06:40:40

标签: php curl request cross-domain blocked

我有一个脚本,可以将数据添加到第三方网站,除非我将其导出,否则会返回“跨域请求被阻止”消息。

是否可以通过额外的参数来规避?

//=============================================================================
// LBR Add
// https://operator.ovocom.nl/ext/extlbroptionform/extentionId/382685
//=============================================================================
$col_1=$_GET['col1'];
$col_2=$_GET['col2'];
$col_3 =$_GET['col3'];

$form['lbroption']=$col_1;
$form['lbroptionprefix']=$col_2;
$form['extId']=$col_2;

$url="https://operator.ovocom.nl/ext/extlbroptionedit";
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, $form);
$res =curl_exec($handle);
curl_close($handle);
//print_r($res);
//exit;
//echo "Data Sent Successfully!";

0 个答案:

没有答案