441件ヒット
[401-441件を表示]
(0.110秒)
別のキーワード
ライブラリ
- ビルトイン (198)
-
net
/ http (24) - openssl (36)
- socket (60)
-
webrick
/ cgi (12) -
webrick
/ httpauth / basicauth (24) -
webrick
/ httpproxy (12) -
webrick
/ log (36) - win32ole (12)
クラス
- Array (18)
- BasicObject (156)
- BasicSocket (60)
-
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: OCSP :: Response (12) - Time (12)
-
WEBrick
:: BasicLog (36) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPAuth :: BasicAuth (12) -
WEBrick
:: HTTPProxyServer (12) -
WIN32OLE
_ PARAM (12)
モジュール
-
Net
:: HTTPHeader (24)
キーワード
- ! (12)
- != (12)
- << (12)
- == (12)
- BasicAuth (12)
- BasicObject (12)
- OCSP (12)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
basic
_ auth (12) - create (12)
-
do
_ not _ reverse _ lookup= (12) - fatal (12)
-
instance
_ eval (24) -
instance
_ exec (12) - logger (12)
-
method
_ missing (12) -
net
/ http (12) - pack (18)
-
proxy
_ basic _ auth (12) -
remote
_ address (12) - retval? (12)
-
ruby 1
. 8 . 3 feature (12) - send (12)
- setsockopt (24)
-
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) - strftime (12)
- xmlrpc (3)
検索結果
-
net
/ http (66.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...[例4: 上の例よりさらに汎用的な例][ruby]{
require 'net/http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
//}
==== フォームの情報を送信する (POS......制御する
url = URI.parse('http://www.example.com/todo.cgi')
req = Net::HTTP::Post.new(url.path)
req.basic_auth 'jack', 'pass'
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'})
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
case res
when Net::HTTPSuccess, Ne......を利用してプロクシを利用します。http_proxyを利用したくないならば
Net::HTTP.new や Net::HTTP.start の proxy_addr 引数に
nil を渡してください。
Net::HTTP.new や Net::HTTP.start の proxy_addr や proxy_port
を指定することでプログラムからプロ... -
OpenSSL
:: OCSP (54.0) -
OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。
...ト)
store # 信頼している証明書ストア
cid = OpenSSL::OCSP::CertificateId.new(subject, issuer)
req = OpenSSL::OCSP::Request.new
req.add_certid(cid)
req.add_nonce
http = Net::HTTP.new('ocsp.example.com', 80)
httpres = http.post("/", req.to_der, 'content-type' => 'applicati......= OpenSSL::OCSP::Response.new(httpres.body)
puts "Response status: #{res.status_string}"
exit if res.status != OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
basic_resp = res.basic
raise "nonce error" unless [-1, 1].include?(req.check_nonce(basic_resp))
unless basic_resp.verify([], store)......puts "verify response fail"
end
rescid, status, reason, revtime, thisupd, nextupd, exts = basic_resp.status.first
STATUS2MESSAGE = {
OpenSSL::OCSP::V_CERTSTATUS_GOOD => "OK",
OpenSSL::OCSP::V_CERTSTATUS_REVOKED => "REVOKED",
OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN => "UNKNOWN",... -
xmlrpc (48.0)
-
XML-RPC を扱うためのライブラリです。
...e
Try the following code. It calls a standard demonstration remote procedure.
require 'xmlrpc/client'
require 'pp'
server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
result = server.call("sample.sumAndDifference", 5, 3)
pp result
=== Documentation
See http......rver
* CGI-based (works with FastCGI)
* Apache mod_ruby server
* WEBrick servlet
* Client
* synchronous/asynchronous calls
* Basic HTTP-401 Authentification
* HTTPS protocol (SSL)
* Parsers
* NQXML (NQXMLStreamParser, NQXMLTreeParser)
* Expat (XMLStreamParser, X......r instances of subclasses of
XMLRPC::BasicServer or by editing xmlrpc/config.rb.
Client Example:
require 'xmlrpc/client'
# ...
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")
server.set_parser(XMLRPC::XMLParser::XMLParser.new)
# ...
Server Example:
requir... -
WIN32OLE
_ PARAM # retval? -> bool (18.0) -
パラメータが戻り値かどうかを判定します。
...り値として扱われる場合に真を返します。
tobj = WIN32OLE_TYPE.new('DirectX 7 for Visual Basic Type Library',
'DirectPlayLobbyConnection')
method = WIN32OLE_METHOD.new(tobj, 'GetPlayerShortName')
param = method.params[0]
puts "#{param.name} #{... -
Array
# pack(template) -> String (7.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...こまでデータがあ
るかを示している)。
ISO/IEC 8825-1:1995 : Information technology−ASN.1 encoding rules : Specification of Basic Encoding Rules(BER) に定められる整数の符号化方法。
//emlist[][ruby]{
[0].pack("w") # => "\x00"
[1].pack("w")...