Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 216.73.216.155
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby18 /
share /
ri /
1.8 /
system /
Net /
HTTP /
Delete
Unzip
Name
Size
Permission
Date
Action
Copy
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Delete
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Get
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Head
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Lock
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Mkcol
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Move
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Options
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Post
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Propfind
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Proppatch
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
ProxyDelta
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Put
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Trace
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
Unlock
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
D-i.yaml
163
B
-rw-r--r--
2023-07-26 13:47
Proxy-c.yaml
803
B
-rw-r--r--
2023-07-26 13:47
active%3f-i.yaml
229
B
-rw-r--r--
2023-07-26 13:47
addr_port-i.yaml
218
B
-rw-r--r--
2023-07-26 13:47
begin_transport-i.yaml
191
B
-rw-r--r--
2023-07-26 13:47
cdesc-HTTP.yaml
13.99
KB
-rw-r--r--
2023-07-26 13:47
conn_address-i.yaml
232
B
-rw-r--r--
2023-07-26 13:47
conn_port-i.yaml
176
B
-rw-r--r--
2023-07-26 13:47
connect-i.yaml
172
B
-rw-r--r--
2023-07-26 13:47
copy-i.yaml
313
B
-rw-r--r--
2023-07-26 13:47
default_port-c.yaml
276
B
-rw-r--r--
2023-07-26 13:47
delete-i.yaml
339
B
-rw-r--r--
2023-07-26 13:47
do_finish-i.yaml
176
B
-rw-r--r--
2023-07-26 13:47
do_start-i.yaml
174
B
-rw-r--r--
2023-07-26 13:47
edit_path-i.yaml
180
B
-rw-r--r--
2023-07-26 13:47
end_transport-i.yaml
192
B
-rw-r--r--
2023-07-26 13:47
finish-i.yaml
285
B
-rw-r--r--
2023-07-26 13:47
get-c.yaml
678
B
-rw-r--r--
2023-07-26 13:47
get-i.yaml
1.59
KB
-rw-r--r--
2023-07-26 13:47
get2-i.yaml
248
B
-rw-r--r--
2023-07-26 13:47
get_print-c.yaml
667
B
-rw-r--r--
2023-07-26 13:47
get_response-c.yaml
778
B
-rw-r--r--
2023-07-26 13:47
head-i.yaml
878
B
-rw-r--r--
2023-07-26 13:47
head2-i.yaml
259
B
-rw-r--r--
2023-07-26 13:47
http_default_port-c.yaml
286
B
-rw-r--r--
2023-07-26 13:47
https_default_port-c.yaml
290
B
-rw-r--r--
2023-07-26 13:47
inspect-i.yaml
171
B
-rw-r--r--
2023-07-26 13:47
keep_alive%3f-i.yaml
188
B
-rw-r--r--
2023-07-26 13:47
lock-i.yaml
319
B
-rw-r--r--
2023-07-26 13:47
mkcol-i.yaml
328
B
-rw-r--r--
2023-07-26 13:47
move-i.yaml
313
B
-rw-r--r--
2023-07-26 13:47
new-c.yaml
331
B
-rw-r--r--
2023-07-26 13:47
on_connect-i.yaml
178
B
-rw-r--r--
2023-07-26 13:47
options-i.yaml
322
B
-rw-r--r--
2023-07-26 13:47
peer_cert-i.yaml
175
B
-rw-r--r--
2023-07-26 13:47
post-i.yaml
1.77
KB
-rw-r--r--
2023-07-26 13:47
post2-i.yaml
257
B
-rw-r--r--
2023-07-26 13:47
post_form-c.yaml
900
B
-rw-r--r--
2023-07-26 13:47
propfind-i.yaml
350
B
-rw-r--r--
2023-07-26 13:47
proppatch-i.yaml
334
B
-rw-r--r--
2023-07-26 13:47
proxy%3f-i.yaml
241
B
-rw-r--r--
2023-07-26 13:47
proxy_address-i.yaml
322
B
-rw-r--r--
2023-07-26 13:47
proxy_class%3f-c.yaml
283
B
-rw-r--r--
2023-07-26 13:47
proxy_pass-i.yaml
283
B
-rw-r--r--
2023-07-26 13:47
proxy_port-i.yaml
320
B
-rw-r--r--
2023-07-26 13:47
proxy_user-i.yaml
279
B
-rw-r--r--
2023-07-26 13:47
proxyaddr-i.yaml
238
B
-rw-r--r--
2023-07-26 13:47
proxyport-i.yaml
235
B
-rw-r--r--
2023-07-26 13:47
read_timeout%3d-i.yaml
261
B
-rw-r--r--
2023-07-26 13:47
request-i.yaml
794
B
-rw-r--r--
2023-07-26 13:47
request_get-i.yaml
1.11
KB
-rw-r--r--
2023-07-26 13:47
request_head-i.yaml
639
B
-rw-r--r--
2023-07-26 13:47
request_post-i.yaml
1.18
KB
-rw-r--r--
2023-07-26 13:47
send_request-i.yaml
615
B
-rw-r--r--
2023-07-26 13:47
set_debug_output-i.yaml
524
B
-rw-r--r--
2023-07-26 13:47
ssl_context_accessor-c.yaml
201
B
-rw-r--r--
2023-07-26 13:47
ssl_timeout%3d-i.yaml
228
B
-rw-r--r--
2023-07-26 13:47
ssl_timeout-i.yaml
179
B
-rw-r--r--
2023-07-26 13:47
start-c.yaml
738
B
-rw-r--r--
2023-07-26 13:47
start-i.yaml
563
B
-rw-r--r--
2023-07-26 13:47
started%3f-i.yaml
297
B
-rw-r--r--
2023-07-26 13:47
timeout%3d-i.yaml
238
B
-rw-r--r--
2023-07-26 13:47
trace-i.yaml
316
B
-rw-r--r--
2023-07-26 13:47
unlock-i.yaml
325
B
-rw-r--r--
2023-07-26 13:47
use_ssl%3d-i.yaml
363
B
-rw-r--r--
2023-07-26 13:47
use_ssl%3f-i.yaml
173
B
-rw-r--r--
2023-07-26 13:47
use_ssl-i.yaml
229
B
-rw-r--r--
2023-07-26 13:47
version_1_1%3f-c.yaml
287
B
-rw-r--r--
2023-07-26 13:47
version_1_1-c.yaml
287
B
-rw-r--r--
2023-07-26 13:47
version_1_2%3f-c.yaml
276
B
-rw-r--r--
2023-07-26 13:47
version_1_2-c.yaml
460
B
-rw-r--r--
2023-07-26 13:47
Save
Rename
--- !ruby/object:RI::ClassDescription attributes: - !ruby/object:RI::Attribute comment: - !ruby/struct:SM::Flow::P body: The host name to connect to. name: address rw: R - !ruby/object:RI::Attribute comment: name: close_on_empty_response rw: RW - !ruby/object:RI::Attribute comment: - !ruby/struct:SM::Flow::P body: Seconds to wait until connection is opened. If the HTTP object cannot open a connection in this many seconds, it raises a TimeoutError exception. name: open_timeout rw: RW - !ruby/object:RI::Attribute comment: - !ruby/struct:SM::Flow::P body: The port number to connect to. name: port rw: R - !ruby/object:RI::Attribute comment: name: proxy_address rw: R - !ruby/object:RI::Attribute comment: name: proxy_pass rw: R - !ruby/object:RI::Attribute comment: name: proxy_port rw: R - !ruby/object:RI::Attribute comment: name: proxy_user rw: R - !ruby/object:RI::Attribute comment: - !ruby/struct:SM::Flow::P body: Seconds to wait until reading one block (by one read(2) call). If the HTTP object cannot open a connection in this many seconds, it raises a TimeoutError exception. name: read_timeout rw: R class_methods: - !ruby/object:RI::MethodSummary name: Proxy - !ruby/object:RI::MethodSummary name: default_port - !ruby/object:RI::MethodSummary name: get - !ruby/object:RI::MethodSummary name: get_print - !ruby/object:RI::MethodSummary name: get_response - !ruby/object:RI::MethodSummary name: http_default_port - !ruby/object:RI::MethodSummary name: https_default_port - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: post_form - !ruby/object:RI::MethodSummary name: proxy_class? - !ruby/object:RI::MethodSummary name: ssl_context_accessor - !ruby/object:RI::MethodSummary name: start - !ruby/object:RI::MethodSummary name: version_1_1 - !ruby/object:RI::MethodSummary name: version_1_1? - !ruby/object:RI::MethodSummary name: version_1_2 - !ruby/object:RI::MethodSummary name: version_1_2? comment: - !ruby/struct:SM::Flow::H level: 2 text: What Is This Library? - !ruby/struct:SM::Flow::P body: This library provides your program functions to access WWW documents via HTTP, Hyper Text Transfer Protocol version 1.1. For details of HTTP, refer [RFC2616] (http://www.ietf.org/rfc/rfc2616.txt). - !ruby/struct:SM::Flow::H level: 2 text: Examples - !ruby/struct:SM::Flow::H level: 3 text: Getting Document From WWW Server - !ruby/struct:SM::Flow::P body: "Example #1: Simple GET+print" - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n Net::HTTP.get_print 'www.example.com', '/index.html'\n" - !ruby/struct:SM::Flow::P body: "Example #2: Simple GET+print by URL" - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n require 'uri'\n Net::HTTP.get_print URI.parse('http://www.example.com/index.html')\n" - !ruby/struct:SM::Flow::P body: "Example #3: More generic GET+print" - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n require 'uri'\n\n url = URI.parse('http://www.example.com/index.html')\n res = Net::HTTP.start(url.host, url.port) {|http|\n http.get('/index.html')\n }\n puts res.body\n" - !ruby/struct:SM::Flow::P body: "Example #4: More generic GET+print" - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n\n url = URI.parse('http://www.example.com/index.html')\n req = Net::HTTP::Get.new(url.path)\n res = Net::HTTP.start(url.host, url.port) {|http|\n http.request(req)\n }\n puts res.body\n" - !ruby/struct:SM::Flow::H level: 3 text: Posting Form Data - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n require 'uri'\n\n #1: Simple POST\n res = Net::HTTP.post_form(URI.parse('http://www.example.com/search.cgi'),\n {'q'=>'ruby', 'max'=>'50'})\n puts res.body\n\n #2: POST with basic authentication\n res = Net::HTTP.post_form(URI.parse('http://jack:pass@www.example.com/todo.cgi'),\n {'from'=>'2005-01-01', 'to'=>'2005-03-31'})\n puts res.body\n\n #3: Detailed control\n url = URI.parse('http://www.example.com/todo.cgi')\n req = Net::HTTP::Post.new(url.path)\n req.basic_auth 'jack', 'pass'\n req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';')\n res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }\n case res\n when Net::HTTPSuccess, Net::HTTPRedirection\n # OK\n else\n res.error!\n end\n" - !ruby/struct:SM::Flow::H level: 3 text: Accessing via Proxy - !ruby/struct:SM::Flow::P body: Net::HTTP.Proxy creates http proxy class. It has same methods of Net::HTTP but its instances always connect to proxy, instead of given host. - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n\n proxy_addr = 'your.proxy.host'\n proxy_port = 8080\n :\n Net::HTTP::Proxy(proxy_addr, proxy_port).start('www.example.com') {|http|\n # always connect to your.proxy.addr:8080\n :\n }\n" - !ruby/struct:SM::Flow::P body: Since Net::HTTP.Proxy returns Net::HTTP itself when proxy_addr is nil, there's no need to change code if there's proxy or not. - !ruby/struct:SM::Flow::P body: "There are two additional parameters in Net::HTTP.Proxy which allow to specify proxy user name and password:" - !ruby/struct:SM::Flow::VERB body: " Net::HTTP::Proxy(proxy_addr, proxy_port, proxy_user = nil, proxy_pass = nil)\n" - !ruby/struct:SM::Flow::P body: "You may use them to work with authorization-enabled proxies:" - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n require 'uri'\n\n proxy_host = 'your.proxy.host'\n proxy_port = 8080\n uri = URI.parse(ENV['http_proxy'])\n proxy_user, proxy_pass = uri.userinfo.split(/:/) if uri.userinfo\n Net::HTTP::Proxy(proxy_host, proxy_port,\n proxy_user, proxy_pass).start('www.example.com') {|http|\n # always connect to your.proxy.addr:8080 using specified username and password\n :\n }\n" - !ruby/struct:SM::Flow::P body: Note that net/http never rely on HTTP_PROXY environment variable. If you want to use proxy, set it explicitly. - !ruby/struct:SM::Flow::H level: 3 text: Following Redirection - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n require 'uri'\n\n def fetch(uri_str, limit = 10)\n # You should choose better exception.\n raise ArgumentError, 'HTTP redirect too deep' if limit == 0\n\n response = Net::HTTP.get_response(URI.parse(uri_str))\n case response\n when Net::HTTPSuccess then response\n when Net::HTTPRedirection then fetch(response['location'], limit - 1)\n else\n response.error!\n end\n end\n\n print fetch('http://www.ruby-lang.org')\n" - !ruby/struct:SM::Flow::P body: Net::HTTPSuccess and Net::HTTPRedirection is a HTTPResponse class. All HTTPResponse objects belong to its own response class which indicate HTTP result status. For details of response classes, see section "HTTP Response Classes". - !ruby/struct:SM::Flow::H level: 3 text: Basic Authentication - !ruby/struct:SM::Flow::VERB body: " require 'net/http'\n\n Net::HTTP.start('www.example.com') {|http|\n req = Net::HTTP::Get.new('/secret-page.html')\n req.basic_auth 'account', 'password'\n response = http.request(req)\n print response.body\n }\n" - !ruby/struct:SM::Flow::H level: 3 text: HTTP Request Classes - !ruby/struct:SM::Flow::P body: Here is HTTP request class hierarchy. - !ruby/struct:SM::Flow::VERB body: " Net::HTTPRequest\n Net::HTTP::Get\n Net::HTTP::Head\n Net::HTTP::Post\n Net::HTTP::Put\n Net::HTTP::Proppatch\n Net::HTTP::Lock\n Net::HTTP::Unlock\n Net::HTTP::Options\n Net::HTTP::Propfind\n Net::HTTP::Delete\n Net::HTTP::Move\n Net::HTTP::Copy\n Net::HTTP::Mkcol\n Net::HTTP::Trace\n" - !ruby/struct:SM::Flow::H level: 3 text: HTTP Response Classes - !ruby/struct:SM::Flow::P body: Here is HTTP response class hierarchy. All classes are defined in Net module. - !ruby/struct:SM::Flow::VERB body: " HTTPResponse\n HTTPUnknownResponse\n HTTPInformation # 1xx\n HTTPContinue # 100\n HTTPSwitchProtocl # 101\n HTTPSuccess # 2xx\n HTTPOK # 200\n HTTPCreated # 201\n HTTPAccepted # 202\n HTTPNonAuthoritativeInformation # 203\n HTTPNoContent # 204\n HTTPResetContent # 205\n HTTPPartialContent # 206\n HTTPRedirection # 3xx\n HTTPMultipleChoice # 300\n HTTPMovedPermanently # 301\n HTTPFound # 302\n HTTPSeeOther # 303\n HTTPNotModified # 304\n HTTPUseProxy # 305\n HTTPTemporaryRedirect # 307\n HTTPClientError # 4xx\n HTTPBadRequest # 400\n HTTPUnauthorized # 401\n HTTPPaymentRequired # 402\n HTTPForbidden # 403\n HTTPNotFound # 404\n HTTPMethodNotAllowed # 405\n HTTPNotAcceptable # 406\n HTTPProxyAuthenticationRequired # 407\n HTTPRequestTimeOut # 408\n HTTPConflict # 409\n HTTPGone # 410\n HTTPLengthRequired # 411\n HTTPPreconditionFailed # 412\n HTTPRequestEntityTooLarge # 413\n HTTPRequestURITooLong # 414\n HTTPUnsupportedMediaType # 415\n HTTPRequestedRangeNotSatisfiable # 416\n HTTPExpectationFailed # 417\n HTTPServerError # 5xx\n HTTPInternalServerError # 500\n HTTPNotImplemented # 501\n HTTPBadGateway # 502\n HTTPServiceUnavailable # 503\n HTTPGatewayTimeOut # 504\n HTTPVersionNotSupported # 505\n" - !ruby/struct:SM::Flow::H level: 2 text: Switching Net::HTTP versions - !ruby/struct:SM::Flow::P body: You can use net/http.rb 1.1 features (bundled with Ruby 1.6) by calling HTTP.version_1_1. Calling Net::HTTP.version_1_2 allows you to use 1.2 features again. - !ruby/struct:SM::Flow::VERB body: " # example\n Net::HTTP.start {|http1| ...(http1 has 1.2 features)... }\n\n Net::HTTP.version_1_1\n Net::HTTP.start {|http2| ...(http2 has 1.1 features)... }\n\n Net::HTTP.version_1_2\n Net::HTTP.start {|http3| ...(http3 has 1.2 features)... }\n" - !ruby/struct:SM::Flow::P body: This function is NOT thread-safe. constants: [] full_name: Net::HTTP includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: D - !ruby/object:RI::MethodSummary name: active? - !ruby/object:RI::MethodSummary name: addr_port - !ruby/object:RI::MethodSummary name: begin_transport - !ruby/object:RI::MethodSummary name: conn_address - !ruby/object:RI::MethodSummary name: conn_port - !ruby/object:RI::MethodSummary name: connect - !ruby/object:RI::MethodSummary name: copy - !ruby/object:RI::MethodSummary name: delete - !ruby/object:RI::MethodSummary name: do_finish - !ruby/object:RI::MethodSummary name: do_start - !ruby/object:RI::MethodSummary name: edit_path - !ruby/object:RI::MethodSummary name: end_transport - !ruby/object:RI::MethodSummary name: finish - !ruby/object:RI::MethodSummary name: get - !ruby/object:RI::MethodSummary name: get2 - !ruby/object:RI::MethodSummary name: head - !ruby/object:RI::MethodSummary name: head2 - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: keep_alive? - !ruby/object:RI::MethodSummary name: lock - !ruby/object:RI::MethodSummary name: mkcol - !ruby/object:RI::MethodSummary name: move - !ruby/object:RI::MethodSummary name: on_connect - !ruby/object:RI::MethodSummary name: options - !ruby/object:RI::MethodSummary name: peer_cert - !ruby/object:RI::MethodSummary name: post - !ruby/object:RI::MethodSummary name: post2 - !ruby/object:RI::MethodSummary name: propfind - !ruby/object:RI::MethodSummary name: proppatch - !ruby/object:RI::MethodSummary name: proxy? - !ruby/object:RI::MethodSummary name: proxy_address - !ruby/object:RI::MethodSummary name: proxy_pass - !ruby/object:RI::MethodSummary name: proxy_port - !ruby/object:RI::MethodSummary name: proxy_user - !ruby/object:RI::MethodSummary name: proxyaddr - !ruby/object:RI::MethodSummary name: proxyport - !ruby/object:RI::MethodSummary name: read_timeout= - !ruby/object:RI::MethodSummary name: request - !ruby/object:RI::MethodSummary name: request_get - !ruby/object:RI::MethodSummary name: request_head - !ruby/object:RI::MethodSummary name: request_post - !ruby/object:RI::MethodSummary name: send_request - !ruby/object:RI::MethodSummary name: set_debug_output - !ruby/object:RI::MethodSummary name: ssl_timeout - !ruby/object:RI::MethodSummary name: ssl_timeout= - !ruby/object:RI::MethodSummary name: start - !ruby/object:RI::MethodSummary name: started? - !ruby/object:RI::MethodSummary name: timeout= - !ruby/object:RI::MethodSummary name: trace - !ruby/object:RI::MethodSummary name: unlock - !ruby/object:RI::MethodSummary name: use_ssl - !ruby/object:RI::MethodSummary name: use_ssl= - !ruby/object:RI::MethodSummary name: use_ssl? - !ruby/object:RI::MethodSummary name: use_ssl? name: HTTP superclass: Protocol