All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 1m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m11s
Build & Deploy / 🚀 Deploy (push) Successful in 45s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m2s
Build & Deploy / 🔔 Notify (push) Successful in 2s
19 lines
565 B
TypeScript
19 lines
565 B
TypeScript
import axios from 'axios';
|
|
|
|
async function test() {
|
|
const u =
|
|
'https://testing.klz-cables.com/de/blog/johannes-gleich-startet-als-senior-key-account-manager-durch';
|
|
try {
|
|
const res = await axios.get(u, {
|
|
headers: { Cookie: 'klz_gatekeeper_session=lassmichrein' },
|
|
validateStatus: (status) => status < 400,
|
|
});
|
|
console.log('Status:', res.status);
|
|
console.log('Headers:', res.headers);
|
|
} catch (err: any) {
|
|
console.log('Error status:', err.response?.status);
|
|
console.log('Error data:', err.response?.data);
|
|
}
|
|
}
|
|
test();
|