#!/bin/bash
UA='Mozilla/5.0 (Windows NT 10.0; Win64; x64)'
echo '== IP / + headers =='
curl -sk -m 10 -A "$UA" -D /tmp/H.txt -o /tmp/B.txt 'https://129.110.46.44/'
grep -aiE '^location|^server|set-cookie' /tmp/H.txt | head -5
echo '--- body full:'; cat /tmp/B.txt; echo
echo '== IP userinfo + headers =='
curl -sk -m 10 -A "$UA" -D /tmp/H2.txt -o /tmp/B2.txt 'https://129.110.46.44/f5-oauth2/v1/userinfo'
grep -aiE '^location|^server' /tmp/H2.txt | head -3
echo '--- body full:'; cat /tmp/B2.txt; echo
