Skip to content

Instantly share code, notes, and snippets.

@gleicon
Forked from quarkness/mobile-headers.sh
Created August 11, 2022 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gleicon/1755b44e3063ca49d2a3789c953a3e65 to your computer and use it in GitHub Desktop.
Save gleicon/1755b44e3063ca49d2a3789c953a3e65 to your computer and use it in GitHub Desktop.
request headers with iphone / desktop user-agent
#!/bin/sh
echo "iPhone:"
curl -I -H "User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; nl-nl) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5" $1
echo "Desktop:"
curl -I -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment