|
1982 | 1982 | <term><parameter>passwordPrompt</parameter></term> |
1983 | 1983 | <listitem> |
1984 | 1984 | <simpara> |
1985 | | - A password prompt. |
| 1985 | + パスワードプロンプト。 |
1986 | 1986 | </simpara> |
1987 | 1987 | </listitem> |
1988 | 1988 | </varlistentry> |
1989 | 1989 | <varlistentry> |
1990 | 1990 | <term><parameter>maximumPasswordLength</parameter></term> |
1991 | 1991 | <listitem> |
1992 | 1992 | <simpara> |
1993 | | - The maximum length of the password. |
| 1993 | + パスワードの最大長。 |
1994 | 1994 | </simpara> |
1995 | 1995 | </listitem> |
1996 | 1996 | </varlistentry> |
1997 | 1997 | </variablelist> |
1998 | | - The callback should return a <type>string</type> containing the password. |
| 1998 | + このコールバックは、パスワードが入った <type>string</type> を返さなければなりません。 |
1999 | 1999 | cURL 7.4.2 以降で利用可能でしたが、cURL 7.11.1 からは非推奨となっており、 |
2000 | 2000 | cURL 7.15.5 を最後に削除されました。 |
2001 | 2001 | PHP 7.3.0 で削除されました。 |
|
2219 | 2219 | <term><parameter>bytesToDownload</parameter></term> |
2220 | 2220 | <listitem> |
2221 | 2221 | <simpara> |
2222 | | - The total number of bytes expected to be downloaded in this transfer. |
| 2222 | + この転送でダウンロードされようとしている総バイト数。 |
2223 | 2223 | </simpara> |
2224 | 2224 | </listitem> |
2225 | 2225 | </varlistentry> |
2226 | 2226 | <varlistentry> |
2227 | 2227 | <term><parameter>bytesDownloaded</parameter></term> |
2228 | 2228 | <listitem> |
2229 | 2229 | <simpara> |
2230 | | - The number of bytes downloaded so far. |
| 2230 | + これまでにダウンロードされたバイト数。 |
2231 | 2231 | </simpara> |
2232 | 2232 | </listitem> |
2233 | 2233 | </varlistentry> |
2234 | 2234 | <varlistentry> |
2235 | 2235 | <term><parameter>bytesToUpload</parameter></term> |
2236 | 2236 | <listitem> |
2237 | 2237 | <simpara> |
2238 | | - The total number of bytes expected to be uploaded in this transfer. |
| 2238 | + この転送でアップロードされようとしている総バイト数。 |
2239 | 2239 | </simpara> |
2240 | 2240 | </listitem> |
2241 | 2241 | </varlistentry> |
2242 | 2242 | <varlistentry> |
2243 | 2243 | <term><parameter>bytesUploaded</parameter></term> |
2244 | 2244 | <listitem> |
2245 | 2245 | <simpara> |
2246 | | - The number of bytes uploaded so far. |
| 2246 | + これまでにアップロードされたバイト数。 |
2247 | 2247 | </simpara> |
2248 | 2248 | </listitem> |
2249 | 2249 | </varlistentry> |
2250 | 2250 | </variablelist> |
2251 | | - The callback should return an <type>int</type> with a non-zero value to abort the transfer |
2252 | | - and set a <constant>CURLE_ABORTED_BY_CALLBACK</constant> error. |
| 2251 | + 転送を中断し、<constant>CURLE_ABORTED_BY_CALLBACK</constant> エラーをセットするには、 |
| 2252 | + このコールバックから非ゼロの <type>int</type> を返してください。 |
2253 | 2253 | <note> |
2254 | 2254 | <para> |
2255 | | - The callback is only called when the <constant>CURLOPT_NOPROGRESS</constant> |
2256 | | - option is set to &false;. |
| 2255 | + このコールバックが呼ばれるのは、<constant>CURLOPT_NOPROGRESS</constant> オプションが |
| 2256 | + &false; に設定されている場合のみです。 |
2257 | 2257 | </para> |
2258 | 2258 | </note> |
2259 | 2259 | cURL 7.1.0 以降で利用可能ですが、cURL 7.32.0 以降は非推奨となりました。 |
2260 | | - Use <constant>CURLOPT_XFERINFOFUNCTION</constant> instead. |
| 2260 | + 代わりに <constant>CURLOPT_XFERINFOFUNCTION</constant> を用いてください。 |
2261 | 2261 | </para> |
2262 | 2262 | </listitem> |
2263 | 2263 | </varlistentry> |
|
2937 | 2937 | <term><parameter>streamResource</parameter></term> |
2938 | 2938 | <listitem> |
2939 | 2939 | <simpara> |
2940 | | - Stream <type>resource</type> provided to cURL through the option |
2941 | | - <constant>CURLOPT_READDATA</constant>. |
| 2940 | + <constant>CURLOPT_READDATA</constant> オプションを通して |
| 2941 | + cURL へと渡されたストリーム <type>resource</type>。 |
2942 | 2942 | </simpara> |
2943 | 2943 | </listitem> |
2944 | 2944 | </varlistentry> |
2945 | 2945 | <varlistentry> |
2946 | 2946 | <term><parameter>maxAmountOfDataToRead</parameter></term> |
2947 | 2947 | <listitem> |
2948 | 2948 | <simpara> |
2949 | | - The maximum amount of data to be read. |
| 2949 | + 読み出すべきデータの最大長。 |
2950 | 2950 | </simpara> |
2951 | 2951 | </listitem> |
2952 | 2952 | </varlistentry> |
2953 | 2953 | </variablelist> |
2954 | | - The callback should return a <type>string</type> |
2955 | | - with a length equal or smaller than the amount of data requested, |
2956 | | - typically by reading it from the passed stream <type>resource</type>. It should |
2957 | | - return an empty <type>string</type> to signal <literal>EOF</literal>. |
| 2954 | + このコールバックは、要求されたデータ長以下の <type>string</type> を |
| 2955 | + 返さなければなりません。 |
| 2956 | + 典型的には、渡されたストリーム <type>resource</type> からデータを読み出して返します。 |
| 2957 | + <literal>EOF</literal> を伝えるためには空の <type>string</type> を返してください。 |
2958 | 2958 | cURL 7.1.0 以降で利用可能です。 |
2959 | 2959 | </para> |
2960 | 2960 | </listitem> |
|
4343 | 4343 | <term><parameter>data</parameter></term> |
4344 | 4344 | <listitem> |
4345 | 4345 | <simpara> |
4346 | | - The data to be written. |
| 4346 | + 書き込むべきデータ。 |
4347 | 4347 | </simpara> |
4348 | 4348 | </listitem> |
4349 | 4349 | </varlistentry> |
4350 | 4350 | </variablelist> |
4351 | | - The data must be saved by the callback |
4352 | | - and the callback must return the exact number of bytes written |
4353 | | - or the transfer will be aborted with an error. |
| 4351 | + このコールバックは、データを保存して書き込んだバイト数を返さなければなりません。 |
| 4352 | + そうしないなら、転送はエラーで中止されます (訳注: 一度にすべてのデータを書き込む必要があり、部分的な書き込みはできません。つまり、返り値は渡されたデータ長と一致しなければなりません)。 |
4354 | 4353 | cURL 7.1.0 以降で利用可能です。 |
4355 | 4354 | </para> |
4356 | 4355 | </listitem> |
|
4410 | 4409 | <term><parameter>bytesToDownload</parameter></term> |
4411 | 4410 | <listitem> |
4412 | 4411 | <simpara> |
4413 | | - The total number of bytes expected to be downloaded in this transfer. |
| 4412 | + この転送でダウンロードされようとしている総バイト数。 |
4414 | 4413 | </simpara> |
4415 | 4414 | </listitem> |
4416 | 4415 | </varlistentry> |
4417 | 4416 | <varlistentry> |
4418 | 4417 | <term><parameter>bytesDownloaded</parameter></term> |
4419 | 4418 | <listitem> |
4420 | 4419 | <simpara> |
4421 | | - The number of bytes downloaded so far. |
| 4420 | + これまでにダウンロードされたバイト数。 |
4422 | 4421 | </simpara> |
4423 | 4422 | </listitem> |
4424 | 4423 | </varlistentry> |
4425 | 4424 | <varlistentry> |
4426 | 4425 | <term><parameter>bytesToUpload</parameter></term> |
4427 | 4426 | <listitem> |
4428 | 4427 | <simpara> |
4429 | | - The total number of bytes expected to be uploaded in this transfer. |
| 4428 | + この転送でアップロードされようとしている総バイト数。 |
4430 | 4429 | </simpara> |
4431 | 4430 | </listitem> |
4432 | 4431 | </varlistentry> |
4433 | 4432 | <varlistentry> |
4434 | 4433 | <term><parameter>bytesUploaded</parameter></term> |
4435 | 4434 | <listitem> |
4436 | 4435 | <simpara> |
4437 | | - The number of bytes uploaded so far. |
| 4436 | + これまでにアップロードされたバイト数。 |
4438 | 4437 | </simpara> |
4439 | 4438 | </listitem> |
4440 | 4439 | </varlistentry> |
4441 | 4440 | </variablelist> |
4442 | | - Return <literal>1</literal> to abort the transfer |
4443 | | - and set a <constant>CURLE_ABORTED_BY_CALLBACK</constant> error. |
| 4441 | + 転送を中断し、<constant>CURLE_ABORTED_BY_CALLBACK</constant> エラーをセットするには、 |
| 4442 | + <literal>1</literal> を返してください。 |
4444 | 4443 | PHP 8.2.0 以降かつ cURL 7.32.0 以降で利用可能です。 |
4445 | 4444 | </para> |
4446 | 4445 | </listitem> |
|
4557 | 4556 | <listitem> |
4558 | 4557 | <para> |
4559 | 4558 | PHP 8.4.0 以降で利用可能です。 |
4560 | | - This option requires <constant>CURLOPT_VERBOSE</constant> option enabled. |
| 4559 | + このオプションを利用するには <constant>CURLOPT_VERBOSE</constant> オプションを有効にする必要があります。 |
4561 | 4560 | A <type>callable</type> to replace the standard cURL verbose output. |
4562 | 4561 | This callback gets called during various stages of the request with verbose debug information. |
4563 | 4562 | このコールバックは、以下のシグニチャである必要があります。 |
|
0 commit comments