Code Context $url = 'https://api-ssl.bitly.com/v3/shorten?access_token=' . $this->bitly['key'] . '&longUrl=' . urlencode($url);
$results = file_get_contents($url);
$url = 'https://api-ssl.bitly.com/v3/shorten?access_token=33e78a0ef19298099adcc167657ab96f2b81ee18&longUrl=http%3A%2F%2Fwww.rootsmusicreport.com%2F%2Fcharts%2Fview%2Falbum%2Fsub_genre%2Fjazzy-blues%2Fweekly%2F2024-11-02%2F2024-11-02'
$http_response_header = array(
(int) 0 => 'HTTP/1.0 410 Gone',
(int) 1 => 'Server: nginx',
(int) 2 => 'Date: Sat, 18 Jan 2025 00:02:05 GMT',
(int) 3 => 'Content-Type: application/json',
(int) 4 => 'Content-Length: 33',
(int) 5 => 'Link: <https://dev.bitly.com/>; rel="deprecation"; type="text/html',
(int) 6 => 'Strict-Transport-Security: max-age=31536000; includeSubDomains',
(int) 7 => 'X-XSS-Protection: 1; mode=blockFilter',
(int) 8 => 'X-Content-Type-Options: nosniff',
(int) 9 => 'X-Frame-Options: DENY',
(int) 10 => 'Content-Security-Policy: default-src 'none',
(int) 11 => 'Via: 1.1 google',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
file_get_contents - [internal], line ??
AppModel::getBitlyUrl() - APP/Model/AppModel.php, line 382
ChartsController::print_chart() - APP/Controller/ChartsController.php, line 278
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123