Sending an order

// TODO: generate XML string

// Target URL
$url = "https://webserver.kassaforte.de/interfaces/KFI/v1/";

// XML-data as string
$requestXML = "";

// userdata, provided by KassaForte
$user = "";
$passwd = "";

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $url);				
curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);  		
curl_setopt($c, CURLOPT_RETURNTRANSFER, true); 			
curl_setopt($c, CURLOPT_FRESH_CONNECT, true);   		
curl_setopt($c, CURLOPT_POST, true);				// use POST
curl_setopt($c, CURLOPT_POSTFIELDS, $requestXML); 		// send XML-data directly
curl_setopt($c, CURLOPT_USERPWD, $user.":".$passwd);		// userdata via HTTP-Basic-Auth 
curl_setopt($c, CURLOPT_TIMEOUT, 30);				

// send the request and retrieve the response
$responseXML = curl_exec($c); 			

// TODO: process the response