Webmatrix SSL证书:“无法获得本地颁发者证书”
我正在使用PHP-cURL与Twitter的API进行交互的项目,以构build我的RESTful请求。 就像(听我说,所有variables分配等): $headers = array( "POST /oauth2/token HTTP/1.1", "Host: api.twitter.com", "User-Agent: Twitter Application-only OAuth App v.1", "Authorization: Basic ".$base64_encoded_bearer_token."", "Content-Type: application/x-www-form-urlencoded;charset=UTF-8", "Content-Length: 29" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=client_credentials"); $header = curl_setopt($ch, CURLOPT_HEADER, 1); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); $retrievedhtml = curl_exec($ch); echo curl_error($ch); […]