Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
OpenURI /
Delete
Unzip
Name
Size
Permission
Date
Action
HTTPError
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
HTTPRedirect
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
Meta
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
OpenRead
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-OpenURI.ri
2.08
KB
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalModule[iI"OpenURI:EF@0o:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Verbatim;[I"LOpenURI is an easy-to-use wrapper for net/http, net/https and net/ftp. ;FS:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::BlankLine o; ;[5I"PIt is possible to open an http, https or ftp URL as though it were a file: ;FI" ;FI". open("http://www.ruby-lang.org/") {|f| ;FI"% f.each_line {|line| p line} ;FI" } ;FI" ;FI"MThe opened file has several getter methods for its meta-information, as ;FI"5follows, since it is extended by OpenURI::Meta. ;FI" ;FI"0 open("http://www.ruby-lang.org/en") {|f| ;FI"% f.each_line {|line| p line} ;FI"W p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/> ;FI", p f.content_type # "text/html" ;FI"- p f.charset # "iso-8859-1" ;FI"# p f.content_encoding # [] ;FI"= p f.last_modified # Thu Dec 05 02:45:02 UTC 2002 ;FI" } ;FI" ;FI"MAdditional header fields can be specified by an optional hash argument. ;FI" ;FI", open("http://www.ruby-lang.org/en/", ;FI"1 "User-Agent" => "Ruby/#{RUBY_VERSION}", ;FI"& "From" => "foo@bar.invalid", ;FI"8 "Referer" => "http://www.ruby-lang.org/") {|f| ;FI" # ... ;FI" } ;FI" ;FI"MThe environment variables such as http_proxy, https_proxy and ftp_proxy ;FI">are in effect by default. :proxy => nil disables proxy. ;FI" ;FI"@ open("http://www.ruby-lang.org/en/", :proxy => nil) {|f| ;FI" # ... ;FI" } ;FI" ;FI"1URI objects can be opened in a similar way. ;FI" ;FI"7 uri = URI.parse("http://www.ruby-lang.org/en/") ;FI" uri.open {|f| ;FI" # ... ;FI" } ;FI" ;FI"OURI objects can be read directly. The returned string is also extended by ;FI"OpenURI::Meta. ;FI" ;FI" str = uri.read ;FI" p str.base_uri ;FI" ;FI")Author:: Tanaka Akira <akr@m17n.org>;F: @fileI"lib/open-uri.rb;T;0[ [[I"Options;Fo;;[ ;0@D[ [[I" class;F[[:public[ [:protected[ [:private[ [I" instance;F[[;[ [;[ [;[