https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey

 

post请求时添加上header头Content-Type: application/xml

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));