Command line Curl which is working properly is :

curl --data username=ekansh&domain=siteURL&password=mypass
http://siteURL:8090/add-user -k -v -u apiuser:XXXXXXX


And i have tried below code for convert it in PHP CURL CODE:

$fields = array('domain' => 'SiteUrl:8090','password' => 'mypass','username' => 'Ekansh');

$data=array(CURLOPT_POST => 1,CURLOPT_HEADER => 0,CURLOPT_URL =>
'SiteUrl:8090/add-user ',CURLOPT_FRESH_CONNECT => 1,CURLOPT_RETURNTRANSFER => 1,CURLOPT_FORBID_REUSE =>
1,CURLOPT_TIMEOUT => 4,CURLOPT_POSTFIELDS => $fields,CURLOPT_SSL_VERIFYPEER => FALSE,CURLOPT_USERPWD => 'apiuser:XXXXXXX',CURLOPT_VERBOSE=>TRUE);

$ch = curl_init();
curl_setopt_array($ch,$data);
$result=curl_exec($ch);
curl_close($ch);

But above code is not working. what i am done wrong in code?