Skip to content

Instantly share code, notes, and snippets.

@dannydb
Created September 11, 2012 13:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannydb/3698668 to your computer and use it in GitHub Desktop.
Save dannydb/3698668 to your computer and use it in GitHub Desktop.
Spoof user agent with open-uri
rpage = open(remote_full_url,
"User-Agent" => "Mozilla/5.0 (...) Firefox/3.0.6").read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment