Skip to content

Instantly share code, notes, and snippets.

@quarkness
Created June 15, 2012 12:03
Show Gist options
  • Save quarkness/2936145 to your computer and use it in GitHub Desktop.
Save quarkness/2936145 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