⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.189
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Net
/
HTTPHeader
/
Edit File: set_form-i.ri
U:RDoc::AnyMethod[iI" set_form:ETI"Net::HTTPHeader#set_form;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Set an HTML form data set.;To:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"+params+ ;T; [o; ; [I":The form data to set, which should be an enumerable. ;TI" See below for more details.;To;;[I"+enctype+ ;T; [o; ; [I"<The content type to use to encode the form submission, ;TI":which should be application/x-www-form-urlencoded or ;TI"multipart/form-data.;To;;[I"+formopt+ ;T; [o; ; [I"7An options hash, supporting the following options:;To;;; ;[o;;[I":boundary ;T; [o; ; [I"/The boundary of the multipart message. If ;TI"/not given, a random boundary will be used.;To;;[I":charset ;T; [o; ; [I"-The charset of the form submission. All ;TI"/field names and values of non-file fields ;TI")should be encoded with this charset.;To:RDoc::Markup::BlankLine o; ; [I"KEach item of params should respond to +each+ and yield 2-3 arguments, ;TI"Bor an array of 2-3 elements. The arguments yielded should be:;To:RDoc::Markup::Verbatim; [I"* The name of the field. ;TI"K* The value of the field, it should be a String or a File or IO-like. ;TI"?* An options hash, supporting the following options, only ;TI" used for file uploads: ;TI"1 :filename :: The name of the file to use. ;TI"? :content_type :: The content type of the uploaded file. ;T:@format0o; ; [I"2Each item is a file field or a normal field. ;TI"HIf +value+ is a File object or the +opt+ hash has a :filename key, ;TI")the item is treated as a file field.;T@;o; ; [ I"JIf Transfer-Encoding is set as chunked, this sends the request using ;TI"Echunked encoding. Because chunked encoding is HTTP/1.1 feature, ;TI"Gyou should confirm that the server supports HTTP/1.1 before using ;TI"chunked encoding.;T@;o; ; [I" Example:;To;; [I"3req.set_form([["q", "ruby"], ["lang", "en"]]) ;TI" ;TI"9req.set_form({"f"=>File.open('/path/to/filename')}, ;TI") "multipart/form-data", ;TI"$ charset: "UTF-8", ;TI") ;TI" ;TI"req.set_form([["f", ;TI"8 File.open('/path/to/filename.bar'), ;TI"5 {filename: "other-filename.foo"} ;TI" ]], ;TI") "multipart/form-data", ;TI") ;T;0o; ; [I"6See also RFC 2388, RFC 2616, HTML 4.01, and HTML5;T: @fileI"lib/net/http/header.rb;T:0@omit_headings_from_table_of_contents_below000[ I"F(params, enctype='application/x-www-form-urlencoded', formopt={});T@hFI"HTTPHeader;TcRDoc::NormalModule00
Simpan