Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Ruby Programming/Standard Library/Net::HTTP

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

How to access webpages with Net::HTTP Allows access to downloading webpages. a 1.8 example: require 'net/http' mainp = Net::HTTP.new('www.hello.com', 80) response, content = mainp.get('index.html', nil) puts content Here is the rdoc which contains many examples. See also OpenURI. how to do it with https (ssl) snippets.dzone.com/posts/show/788