I am not familer with PHP and need help to convert below php code to command line curl. Please advise. I tried different ways using postman but did not work out.
$username="";
$password="";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.xxx.co.uk/apinew");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('username' => $username,'pass' => $password,'type' => 'both','buildname' => 'Little Westwood House','subBname' => '','number' => '','depstreet' => '','street' => 'Bucks Hill','postcode' => 'WD4 9AR')));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec ($ch);
curl_close ($ch);
print_r($server_output);