Spaces:
Sleeping
Sleeping
File size: 667 Bytes
14b0378 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import axios from 'axios';
async function testUrl() {
const url = 'https://codebydante-brodyfilestreambot.hf.space/stream/7361?hash=1deaf9';
try {
const response = await axios({
url,
method: 'GET',
responseType: 'arraybuffer',
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
'Referer': 'https://google.com'
}
});
console.log('Headers:', response.headers);
console.log('Content-Type:', response.headers['content-type']);
} catch (err) {
console.error(err);
}
}
testUrl();
|