Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created January 15, 2013 22:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save garybernhardt/4542842 to your computer and use it in GitHub Desktop.
failbowl:~(master!?) $ # Curl with normal user agent; get the correct text back
failbowl:~(master!?) $ curl -s 'https://gist.github.com/raw/4534954/b508396cb255b52a0defbc75c92e69ad5c2937b5/gistfile1.rb' | head -1
# I don't really see any services here. What I see is:
failbowl:~(master!?) $ # Curl as iPhone; get broken text back
failbowl:~(master!?) $ curl -s -A 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16' 'https://gist.github.com/raw/4534954/b508396cb255b52a0defbc75c92e69ad5c2937b5/gistfile1.rb' | head -1
# I don't really see any services here. What I see is:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment