L
LMario
Somebody can help to me to rewrite to next CURL PHP code to Java HTTPComponents:
$process = curl_init('https://www.test.com/directory');
curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: text/xml', 'charset=utf-8'));
curl_setopt($process, CURLOPT_POSTFIELDS, $sob->saveXML());
curl_setopt($process, CURLOPT_SSLCERT, '123456789.cer');
curl_setopt($process, CURLOPT_SSLCERTPASSWD, "123456789");
curl_setopt($process, CURLOPT_RETURNTRANSFER, true);
curl_setopt($process, CURLOPT_POST, true);
curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($process, CURLOPT_SSL_VERIFYHOST, false);
$answer = curl_exec($process);
curl_close($process);
$process = curl_init('https://www.test.com/directory');
curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: text/xml', 'charset=utf-8'));
curl_setopt($process, CURLOPT_POSTFIELDS, $sob->saveXML());
curl_setopt($process, CURLOPT_SSLCERT, '123456789.cer');
curl_setopt($process, CURLOPT_SSLCERTPASSWD, "123456789");
curl_setopt($process, CURLOPT_RETURNTRANSFER, true);
curl_setopt($process, CURLOPT_POST, true);
curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($process, CURLOPT_SSL_VERIFYHOST, false);
$answer = curl_exec($process);
curl_close($process);