我试图通过CURL集成Aweber,但它总是返回一条消息“电子邮件地址无效”,但是如果我粘贴相同的URL,我将通过它在浏览器地址栏中卷曲它的作品,并将其添加到aweber列表。任何一个可以指导我怎样才能让它通过卷曲在这里工作是我的代码:Aweber通过卷曲集成
$listname = 'sarnia-basic'; // YOUR LIST NAME
$adtracking = 'sarniabusiness'; // AD TRACKING
$url = 'http://www.aweber.com/scripts/addlead.pl?listname=sarnia-basic&meta_adtracking=sarniabusiness&name=Mohammad Tanveer&[email protected]&meta_message=1&redirect=http://www.aweber.com/form/thankyou_vo.html';
$ch1 = curl_init($url);
$options = array(CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => 'Mozilla/5.0',
CURLOPT_HEADER => false,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_FAILONERROR => true,
CURLOPT_AUTOREFERER => true,
);
curl_setopt_array($ch1, $options);
$mh = curl_multi_init();
curl_multi_add_handle($mh, $ch1);
$running = null;
do {
curl_multi_exec($mh, $running);
} while ($running);
$html = curl_multi_getcontent($ch1);
curl_multi_remove_handle($mh, $ch1);
curl_multi_close($mh);
我已经加入进行urlencode(),但它仍然没有工作 – user1020553