Created
July 1, 2024 14:32
-
-
Save gavingmiller/b70e07647c3be9d8d9b81bbf6f5ce36a to your computer and use it in GitHub Desktop.
Joan Source
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
def GetSource | |
url = URI.parse('http://www.icogno.com/') | |
request = Net::HTTP::Get.new(url.path) | |
response = Net::HTTP.start(url.host, url.port) {|http| | |
http.request(request) | |
} | |
return response.body | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment