我試圖通過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