21,892
社区成员
发帖
与我相关
我的任务
分享
$client = curl_init();
curl_setopt($client, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($client, CURLOPT_URL, $address);
curl_setopt($client, CURLOPT_CONNECTTIMEOUT, 150);
curl_setopt($client, CURLOPT_TIMEOUT, 150);
curl_setopt($client, CURLOPT_RETURNTRANSFER, true );
curl_setopt($client, CURLOPT_POST, true );
curl_setopt($client, CURLOPT_VERBOSE, true );
curl_setopt($client, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($client, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($client, CURLOPT_SSLCERT, getcwd().'/latest_key/willaniclienttest.p12');//willaniclienttest.p12
curl_setopt($client, CURLOPT_SSLCERTTYPE, 'P12');
curl_setopt($client, CURLOPT_SSLCERTPASSWD, 'willanitest');
$client = curl_init();
curl_setopt($client, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($client, CURLOPT_URL, $address);
curl_setopt($client, CURLOPT_CONNECTTIMEOUT, 150);
curl_setopt($client, CURLOPT_TIMEOUT, 150);
curl_setopt($client, CURLOPT_RETURNTRANSFER, true );
curl_setopt($client, CURLOPT_POST, true );
curl_setopt($client, CURLOPT_VERBOSE, true );
curl_setopt($client, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($client, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($client, CURLOPT_CAINFO, getcwd().'/latest_key/cacert.pem'); // cacert.pem
curl_setopt($client, CURLOPT_SSLCERT, getcwd().'/latest_key/willaniclienttest.p12');//willaniclienttest.p12
curl_setopt($client, CURLOPT_SSLCERTTYPE, 'P12');
curl_setopt($client, CURLOPT_SSLCERTPASSWD, 'willanitest');
$client = curl_init();
curl_setopt($client, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($client, CURLOPT_URL, $address);
curl_setopt($client, CURLOPT_CONNECTTIMEOUT, 150);
curl_setopt($client, CURLOPT_TIMEOUT, 150);
curl_setopt($client, CURLOPT_RETURNTRANSFER, true );
curl_setopt($client, CURLOPT_POST, true );
curl_setopt($client, CURLOPT_VERBOSE, true );
curl_setopt($client, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($client, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($client, CURLOPT_CAINFO, getcwd().'/latest_key/cacert.pem'); // cacert.pem
curl_setopt($ch, CURLOPT_SSLCERT, getcwd().'/latest_key/publicCert.pem'); //
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "epay123");
curl_setopt($ch, CURLOPT_SSLKEY, getcwd().'/latest_key/privateKey.pem');
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, "epay123");
$client = curl_init();
curl_setopt($client, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($client, CURLOPT_URL, $address);
curl_setopt($client, CURLOPT_CONNECTTIMEOUT, 150);
curl_setopt($client, CURLOPT_TIMEOUT, 150);
curl_setopt($client, CURLOPT_RETURNTRANSFER, true );
curl_setopt($client, CURLOPT_POST, true );
curl_setopt($client, CURLOPT_VERBOSE, true );
curl_setopt($client, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($client, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSLCERT, getcwd().'/latest_key/publicCert.pem'); //
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "epay123");
curl_setopt($ch, CURLOPT_SSLKEY, getcwd().'/latest_key/privateKey.pem');
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, "epay123");