File get contents -ror
From Sandoz
(Difference between revisions)
Sandoz-admin (Talk | contribs) m (Protected "File get contents -ror" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
Sandoz-admin (Talk | contribs) |
||
Line 1: | Line 1: | ||
response = Net::HTTP.get_response(URI.parse(url)).body | response = Net::HTTP.get_response(URI.parse(url)).body | ||
+ | |||
+ | html = open(url, "User-Agent" => getUseragent(), :proxy=>getProxy()) |
Revision as of 05:02, 2 February 2011
response = Net::HTTP.get_response(URI.parse(url)).body
html = open(url, "User-Agent" => getUseragent(), :proxy=>getProxy())