File get contents -ror

From Sandoz

(Difference between revisions)
Jump to: navigation, search
m (Protected "File get contents -ror" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
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())

Personal tools