Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
open uri « Network « Ruby
Ruby
Network
open uri
1.
The open-uri Library
2.
Opening a URI
3.
Do a google search and parse the result html
4.
Get a file from a URL
5.
open in a block style:
6.
use open directly upon URI objects
7.
the shortest open-uri code possible
8.
use methods associated with the object it returns to find out particulars about the HTTP (or FTP) response itself.
9.
send extra header fields with an HTTP request by supplying an optional hash parameter to open
10.
Use openuri to open a web link