This is following curl code
$ch = curl_init(); //initiate the curl session
curl_setopt($ch, CURLOPT_URL, $url); //set to url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // tell curl to return data in a variable
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlrequest); // post the xml
curl_setopt($ch, CURLOPT_TIMEOUT, 10); // set timeout in seconds
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$result['xml'] = curl_exec($ch);
How do I change the following code to use drupal_http_request()
?