Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Ruby Programming/Standard Library/Net::HTTP

From Wikibooks, open books for an open world
<Ruby Programming
This page may need to bereviewed for quality.

How to access webpages with Net::HTTP

[edit |edit source]

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 alsoOpenURI.

how to do it with https (ssl) snippets.dzone.com/posts/show/788

Retrieved from "https://en.wikibooks.org/w/index.php?title=Ruby_Programming/Standard_Library/Net::HTTP&oldid=1930551"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp