Hi everyone
I had PHP code but i need help how to convert it to Java code.
I search lots of examples but raerly on non of them has what i need.
So i need to convert this code to Java
$options = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT => 30,
CURLOPT_CONNECTTIMEOUT => 25,
CURLOPT_USERAGENT => 'PP-TTT',
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $soap_post,//contains some SOAP code
CURLOPT_HTTPHEADER => array('Content-Type: text/xml'),
CURLOPT_URL => $url , // contains some CURLOPT_SSLCERT => '/ CURLOPT_SSLCERTPASSWD => 'pass123');
curl_setopt_array($ch , $options);
$answer = curl_exec($ch);
Any help will be appricate. Tnx
I had PHP code but i need help how to convert it to Java code.
I search lots of examples but raerly on non of them has what i need.
So i need to convert this code to Java
$options = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT => 30,
CURLOPT_CONNECTTIMEOUT => 25,
CURLOPT_USERAGENT => 'PP-TTT',
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $soap_post,//contains some SOAP code
CURLOPT_HTTPHEADER => array('Content-Type: text/xml'),
CURLOPT_URL => $url , // contains some CURLOPT_SSLCERT => '/ CURLOPT_SSLCERTPASSWD => 'pass123');
curl_setopt_array($ch , $options);
$answer = curl_exec($ch);
Any help will be appricate. Tnx