=encoding utf8 =head1 NAME =begin original HTTP::WebTest::Plugin::SetRequest - Initializes HTTP request for web test =end original HTTP::WebTest::Plugin::SetRequest - ウェブテストのための HTTP リクエストの初期化 =head1 SYNOPSIS =begin original Not Applicable =end original なし. =head1 DESCRIPTION =begin original This plugin initializes the HTTP request for a web test. =end original このプラグインはウェブテストのための HTTP リクエストを初期化します. =head1 TEST PARAMETERS (テストパラメータ) =head2 relative_urls =begin original If set to C than C supports relative URLs. See test parameter C for more information. =end original C を設定することで C が相対URL をサポートするように なります. より多くの情報は C テストパラメータを参照してください. =head3 Allowed values (使用可能な値) C, C =head3 Default value (デフォルト値) C =head2 url =begin original URL to test. =end original テストするURL. =begin original If test parameter C is set to C than URL for each test is treated as relative to the URL in the previous test. URL in the first test is treated as relative to C. =end original テストパラメータ C が C に設定されているときは 1つ前のテストの URL からの相対URLとして処理されます. 最初のテストでは C からの相対として処理されます. =begin original If test parameter C is set to C than each URL is treated as absolute. In this case if schema part of URL is omitted (i.e. URL doesn't start with C, C, etc) then C is implied. =end original テストパラメータ C が C に設定されているときは 絶対URLとして処理されます. この時, URL のスキーマ部分が省略されている 時(つまりURLがC, C 等で始まっていない時)は C が付加されます. =head2 method =begin original HTTP request method. =end original HTTP リクエストメソッド. =begin original See RFC 2616 (HTTP/1.1 protocol). =end original RFC 2616 (HTTP/1.1 プロトコル)を参照してください. =head3 Allowed values (使用可能な値) C, C =head3 Default value (デフォルト値) C =head2 http_headers =begin original A list of HTTP header/value pairs. Can be used to override default HTTP headers or to add additional HTTP headers. =end original HTTP ヘッダ/値ペアのリスト. デフォルトの HTTP ヘッダを上書きしたり HTTP ヘッダを追加したりできます. =head3 Example http_headers = ( Accept => text/plain, text/html ) =head2 params =begin original A list of name/value pairs to be passed as parameters to the URL. (This element is used to test pages that process input from forms.) =end original URL にパラメータとして渡す名前/値ペアのリスト. (この要素はフォームからの入力を処理するページのテストのために使います.) =begin original If the method key is set to C, these pairs are URI-escaped and appended to the requested URL. =end original method キーに C が設定されているのならこれらのペアは URI-エスケープされてリクエストURLに追加されます. =begin original Example (wtscript file): =end original 例 (wtscript ファイル): url = http://www.hotmail.com/cgi-bin/hmhome params = ( curmbox F001 A005 from HotMail ) =begin original generates the HTTP request with URI: =end original 生成される HTTP リクエスト URI: http://www.hotmail.com/cgi-bin/hmhome?curmbox=F001%20A005&from=HotMail =begin original If the method key is set to C, as long as all values are scalars they are URI-escaped and put into content of the HTTP request. C content type is set for such HTTP request. =end original もしメソッドキーが C に設定されているときは同じように URI-エスケープされ, HTTP リクエストの本体で送られます. この時, HTTP リクエストに C コンテンツタイプが設定されます. =begin original If the method key is set to C, some values may be defined as lists. In this case L uses C content type used for C as specified in RFC 1867. Each parameter with list value is treated as file part specification with the following interpretation: =end original method キーが C に設定されているのなら値をリストで定義する こともできます. この時 L は RFC 1867 で 仕様化されている C<フォームベースのファイルアップロード> のために C コンテンツタイプを使います. リストの核パラメータは 以下の処理を通してファイルパートの指定として扱われます. ( FILE, FILENAME, HEADER => VALUE... ) =begin original where =end original それぞれの意味は以下の通りです. =over 4 =item * FILE =begin original The name of a file to open. This file will be read and its content placed in the request. =end original 読み込むファイルの名前. このファイルの中身がリクエストに使われます. =item * FILENAME =begin original The optional filename to be reported in the request. If it is not specified than basename of C is used. =end original リクエストで報告する任意のファイル名. 指定されなかったときは C のベースネームが使われます. =item * HEADER => VALUE =begin original Additional optional headers for file part. =end original ファイルパートの任意の追加ヘッダ. =back =begin original Example (wtscript file): =end original 例 (wtscript ファイル): url = http://www.server.com/upload.pl method = post params = ( submit => ok file => ( '/home/ilya/file.txt', 'myfile.txt' ) ) =begin original It generates HTTP request with C file included and reported under name C. =end original これは C という名前で C の中身を 送る HTTP リクエストを生成します. =head2 auth =begin original A list which contains two elements: userid/password pair to be used for web page access authorization. =end original ウェブページへのアクセス認証に使うユーザ名/パスワードの2つの要素をもつ リストを指定します. =head2 proxies =begin original A list of service name/proxy URL pairs that specify proxy servers to use for requests. =end original リクエストに使うためのプロキシサーバを指定する サービス名/プロキシURLのペアのリスト. =head3 Example proxies = ( http => http://http_proxy.mycompany.com ftp => http://ftp_proxy.mycompany.com ) =head2 pauth =begin original A list which contains two elements: userid/password pair to be used for proxy server access authorization. =end original 2つの要素, プロキシサーバにアクセスするための認証のユーザ名/パスワードの ペアを含むリスト. =head2 user_agent =begin original Set the product token that is used to identify the user agent on the network. =end original ネットワーク上でユーザエージェントを識別するために使われる 製品トークンを設定します. =head3 Default value (デフォルト値) C =begin original where C is version number of HTTP-WebTest. =end original C は HTTP-WebTest のバージョン番号です. =head2 handle_redirects =begin original If set to C then HTTP-WebTest automatically follows redirects. It means that you never see HTTP responses with status codes 301 and 302. This feature is disabled if this test parameter is set to C. =end original C の時 HTTP-WebTest が自動的にリダイレクトをたどります. これによってステータスコード 301 及び 302 の HTTP レスポンスを みることはなくなります. この機能を無効にするにはこのテストパラメータに C を設定します. =head3 Allowed values (使用可能な値) C, C =head3 Default value (デフォルト値) C =head2 timeout =begin original Set the timeout value in seconds. =end original タイムアウト値を秒で設定します. =head3 Default value (デフォルト値) C<180> =head1 COPYRIGHT Copyright (c) 2000-2001 Richard Anderson. All rights reserved. Copyright (c) 2001-2003 Ilya Martynov. All rights reserved. =begin original This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =end original このプログラムはフリーソフトです. このプログラムは Perl 自身と同じ条件下で 再配布・改変可能です. =head1 SEE ALSO L L L L