<?php
CURLOPT_URL => 'https://w...content-available-to-author-only...i.fr/public_html/mphotos/i1410MAG/-large-out03.jpg',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER
=> array( 'Accept: */*',
'Accept-Encoding: gzip, deflate, br, zstd',
'Accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7',
'Cache-Control: no-cache',
'Connection: keep-alive',
'Sec-Fetch-Site: none',
'Sec-Fetch-User: ?1',
'Priority: u=0, i',
'Pragma: no-cache',
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
),
));
$last_http_code = $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE
);
echo $last_http_code . "<br>";
echo $contentType . "<br>";
}
echo $response;
?>
PD9waHAKCiRjdXJsID0gY3VybF9pbml0KCk7CgpjdXJsX3NldG9wdF9hcnJheSgkY3VybCwgYXJyYXkoCiAgQ1VSTE9QVF9VUkwgPT4gJ2h0dHBzOi8vdy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uaS5mci9wdWJsaWNfaHRtbC9tcGhvdG9zL2kxNDEwTUFHLy1sYXJnZS1vdXQwMy5qcGcnLAogIENVUkxPUFRfUkVUVVJOVFJBTlNGRVIgPT4gdHJ1ZSwKICBDVVJMT1BUX0VOQ09ESU5HID0+ICcnLAogIENVUkxPUFRfTUFYUkVESVJTID0+IDEwLAogIENVUkxPUFRfVElNRU9VVCA9PiAwLAogIENVUkxPUFRfRk9MTE9XTE9DQVRJT04gPT4gdHJ1ZSwKICBDVVJMT1BUX0hUVFBfVkVSU0lPTiA9PiBDVVJMX0hUV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