タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

httpに関するHiDEのブックマーク (1)

  • library net/http

    要約 汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は [RFC2616] に基きます。 使用例 ウェブサーバからドキュメントを得る (GET) 例1: GET して 表示するだけ require 'net/http' Net::HTTP.get_print 'www.example.com', '/index.html' 例2: URI を使う require 'net/http' require 'uri' Net::HTTP.get_print URI.parse('http://www.example.com/index.html') 例3: より汎用的な例 require 'net/http' require 'uri' url = URI.parse('http://www.example.com/index.html') res = Net::HTTP.st

    HiDE
    HiDE 2012/08/17
  • 1