<?php

$username = 'turgay.yilmaz';
$password = '8749569iO!';
$registryCode = '16342458';
$url = "https://a...content-available-to-author-only...k.ee/?registry_code=$registryCode";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    $responseData = json_decode($response, true);
    print_r($responseData);
}

curl_close($ch);
?>
