Created
September 11, 2012 13:54
-
-
Save dannydb/3698668 to your computer and use it in GitHub Desktop.
Spoof user agent with open-uri
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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