1344件ヒット
[1301-1344件を表示]
(0.148秒)
ライブラリ
-
cgi
/ core (624) -
net
/ http (24) - resolv (12)
-
rubygems
/ commands / query _ command (12) - uri (192)
-
webrick
/ httprequest (36) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (108) -
win32
/ registry (192) - win32ole (12)
クラス
- CGI (12)
-
Net
:: HTTP (24) -
URI
:: FTP (12) -
URI
:: Generic (96) -
URI
:: HTTP (48) -
URI
:: LDAP (12) -
URI
:: MailTo (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (96) - WIN32OLE (12)
モジュール
-
CGI
:: QueryExtension (516) -
CGI
:: QueryExtension :: Value (72) - URI (12)
-
Win32
:: Registry :: API (48) -
Win32
:: Registry :: Constants (144)
キーワード
- FormData (12)
-
KEY
_ ALL _ ACCESS (12) -
KEY
_ CREATE _ LINK (12) -
KEY
_ CREATE _ SUB _ KEY (12) -
KEY
_ ENUMERATE _ SUB _ KEYS (12) -
KEY
_ EXECUTE (12) -
KEY
_ NOTIFY (12) -
KEY
_ QUERY _ VALUE (12) -
KEY
_ READ (12) -
KEY
_ SET _ VALUE (12) -
KEY
_ WRITE (12) - Query (12)
- QueryCommand (12)
- QueryExtension (12)
- QueryInfoKey (12)
- QueryValue (12)
- RegQueryInfoKey (12)
- RegQueryValueExA (12)
-
STANDARD
_ RIGHTS _ READ (12) -
STANDARD
_ RIGHTS _ WRITE (12) - Value (12)
- [] (36)
- accept (12)
-
accept
_ charset (12) -
accept
_ encoding (12) -
accept
_ language (12) -
auth
_ type (12) - build (48)
- build2 (24)
-
cache
_ control (12) - cgi (12)
- component (12)
-
content
_ length (12) -
content
_ type (12) -
create
_ body (12) -
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
each
_ data (12) - filename (12)
- filename= (12)
- files (12)
- first (12)
- from (12)
-
gateway
_ interface (12) -
has
_ key? (12) - host (12)
- include? (12)
- key? (12)
- keys (12)
- last (12)
- list (12)
- multipart? (12)
- name (12)
- name= (12)
- negotiate (12)
- new (60)
-
ole
_ query _ interface (12) - params (12)
- params= (12)
- parse (12)
-
path
_ info (12) -
path
_ translated (12) - post (24)
- pragma (12)
- query= (12)
-
query
_ string (24) -
query
_ string= (12) - referer (12)
-
remote
_ addr (12) -
remote
_ host (12) -
remote
_ ident (12) -
remote
_ user (12) -
request
_ method (12) -
request
_ uri (12) -
ruby 1
. 8 . 4 feature (12) - rubygems (12)
-
rubygems
/ commands / query _ command (12) -
script
_ name (12) -
server
_ name (12) -
server
_ port (12) -
server
_ protocol (12) -
server
_ software (12) -
set
_ params (12) - split (12)
-
to
_ a (12) -
to
_ ary (24) -
unescape
_ filename? (12) -
user
_ agent (12) -
webrick
/ cgi (12)
検索結果
先頭4件
-
Win32
:: Registry :: Constants :: KEY _ SET _ VALUE (3001.0) -
@todo
@todo
セキュリティアクセスマスク。 -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (118.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...T で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な body......POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しないでください。
dest......ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=r... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (118.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...T で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な body......POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しないでください。
dest......ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=r... -
cgi (24.0)
-
CGI プログラムの支援ライブラリです。
...してください。
* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/
=== 使用例
==== フォームフィールドの値を得る
//emlist[][ruby]{
require "cgi"
cgi = CGI.new
values = cgi['field_name']......して得るには CGI#params を使います。
//emlist[例][ruby]{
require "cgi"
cgi = CGI.new
params = cgi.params
//}
また CGI#params は毎回同じ Hash オブジェクトを返すので
以下のような使いかたもできます。
//emlist[][ruby]{
cgi.params['new_field_name'] = ["va......rams.clear # 全パラメータを消去
//}
==== フォームフィールドの値をファイルに保存する
PStore を使うのが最も簡単です。
//emlist[][ruby]{
# 保存
require 'pstore'
db = PStore.new("query.db")
db.transaction do
db["params"] = cgi.par...