我正在努力将其转换为php_curl:
<?php
$auth_endpoint = "https://api.ffm.com/oauth/authorize?response_type=code";
$client_id = "myidishere";
$returnurl = "http://127.0.0.1:8998/returnurl.php";
$auth_request = $auth_endpoint . "&client_id=" . urlencode($client_id). "&redirect_uri=" . urlencode($returnurl);
header("Location:" . $auth_request);
?>