@ character不在cURL上工作

时间:2018-02-06 09:56:59

标签: php curl sms

我尝试使用urlencode() / rawurlencode()@符号转换为%40,但在短信%40中显示为实体,例如kamalkamal002%40gmail.com

我的代码如下:

$message = "Percentage:99%"."\r\n";
$message .="Email:kamalkamal002@gmail.com"."\r\n"; 

$numbers = implode(',', $numbers);

// Prepare data for POST request
$data = array('apikey' => $apiKey, 'username'=>"kamal002", 'numbers' => $numbers, "sendername" => $sender, "message" => $message, 'smstype'=>"PROMO");

// Send the POST request with cURL
$ch = curl_init('http://sms.bulksmsind.in/sendSMS?');

0 个答案:

没有答案