无法打开流:HTTP请求失败! HTTP / 1.0 500内部服务器错误

function marketcurencylist($auth,$id)
{
    $context = stream_context_create(
        array("ssl"=>array(
            'verify_peer'=>false,
            'verify_peer_name'=>false,
        ),

        'http' => array(
        'method' => 'GET',
        'header' => "Content-Type: application/json
"."Authorization:".$auth."
",
        )
    ));
    $response = file_get_contents(api_url().'market/allactivemarketslist', false, $context);
    return $response;
}

failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error

allow_url_fopen must be disabled on your server. Either you can try enable it via php.ini or consider using cURL functions.