以下の内容はhttps://okamuuu.hatenablog.com/entry/2020/09/30/200659より取得しました。


How to get the real URL behind a shortened URL using cURL and axios

こういうのを Node.js でやりたい時は

$ curl -sLI http://shortened_url | grep -i Location

axios の get に以下のようなオプションを渡してあげるとよい

const axios = require('axios')

async function main () {
  const res = await axios.get('https://t.co/q0wn9eZvvY', {
    maxRedirects: 0,
    validateStatus: null
  })  
  console.log(res.headers.location)
}

main()



以上の内容はhttps://okamuuu.hatenablog.com/entry/2020/09/30/200659より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14