Use Net::HTTP:
require 'net/http'
source = Net::HTTP.get('stackoverflow.com', '/index.html')
More Related Contents:
- How to avoid joining all text from Nodes when scraping
- How do I encode/decode HTML entities in Ruby?
- How to HTML encode/escape a string? Is there a built-in?
- How do I pretty-print HTML with Nokogiri?
- How do I parse an HTML table with Nokogiri?
- Ruby on Rails: how to render a string as HTML?
- Why we have to write robots.txt in website application? [closed]
- How long can a background-image be?
- How to make an image center (vertically & horizontally) inside a bigger div [duplicate]
- How do I properly escape quotes inside HTML attributes?
- Can I use div as a direct child of UL?
- How to escape hash character in URL
- Add centered text to the middle of a horizontal rule [duplicate]
- Make page to tell browser not to cache/preserve input values
- text-overflow is not working when using display:flex
- How to prevent a browser from storing passwords
- Center aligning a fixed position div
- What’s the difference between ” ” and ” “?
- CSS Float: Floating an image to the left of the text
- Add line break within tooltips
- What is the default button type?
- Height percentage not working in CSS
- My @media queries aren’t working on mobile devices
- CSS I want a div to be on top of everything
- How can I wrap text around a non rectangular image?
- How does stackoverflow make its Tag input field? [closed]
- When to use CSS positioning?
- Adding HTML forms to email
- How to embed a Google Drive folder in a web page
- Does svg xmlns attribute value requires protocol? Can it be https or relative?