403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.15.203.0
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/ruby18/share/ri/1.8/system/CGI/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/ruby18/share/ri/1.8/system/CGI//out-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: ""
comment: 
- !ruby/struct:SM::Flow::P 
  body: Print an HTTP header and body to $DEFAULT_OUTPUT ($>)
- !ruby/struct:SM::Flow::P 
  body: "The header is provided by <tt>options</tt>, as for #header(). The body of the document is that returned by the passed- in block. This block takes no arguments. It is required."
- !ruby/struct:SM::Flow::VERB 
  body: "  cgi = CGI.new\n  cgi.out{ &quot;string&quot; }\n    # Content-Type: text/html\n    # Content-Length: 6\n    #\n    # string\n\n  cgi.out(&quot;text/plain&quot;) { &quot;string&quot; }\n    # Content-Type: text/plain\n    # Content-Length: 6\n    #\n    # string\n\n  cgi.out(&quot;nph&quot;        =&gt; true,\n          &quot;status&quot;     =&gt; &quot;OK&quot;,  # == &quot;200 OK&quot;\n          &quot;server&quot;     =&gt; ENV['SERVER_SOFTWARE'],\n          &quot;connection&quot; =&gt; &quot;close&quot;,\n          &quot;type&quot;       =&gt; &quot;text/html&quot;,\n          &quot;charset&quot;    =&gt; &quot;iso-2022-jp&quot;,\n            # Content-Type: text/html; charset=iso-2022-jp\n          &quot;language&quot;   =&gt; &quot;ja&quot;,\n          &quot;expires&quot;    =&gt; Time.now + (3600 * 24 * 30),\n          &quot;cookie&quot;     =&gt; [cookie1, cookie2],\n          &quot;my_header1&quot; =&gt; &quot;my_value&quot;,\n          &quot;my_header2&quot; =&gt; &quot;my_value&quot;) { &quot;string&quot; }\n"
- !ruby/struct:SM::Flow::P 
  body: Content-Length is automatically calculated from the size of the String returned by the content block.
- !ruby/struct:SM::Flow::P 
  body: If ENV['REQUEST_METHOD'] == &quot;HEAD&quot;, then only the header is outputted (the content block is still required, but it is ignored).
- !ruby/struct:SM::Flow::P 
  body: If the charset is &quot;iso-2022-jp&quot; or &quot;euc-jp&quot; or &quot;shift_jis&quot; then the content is converted to this charset, and the language is set to &quot;ja&quot;.
full_name: CGI#out
is_singleton: false
name: out
params: (options = "text/html") {|| ...}
visibility: public

Youez - 2016 - github.com/yon3zu
LinuXploit