1.php模拟页面

$url = 'http://211.141.88.15/vpmn/public/index.php?controller=book&action=importexcel';
$data = array(
  'excelfile' => '@' . '待上传的文件名',
  'groupid' => '1318769',
  'search' => '提交'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
$response = curl_exec($ch);

2.原始提交页面