Skip to content

Commit 9e83525

Browse files
committed
wip: 進捗率 50 % くらい
1 parent 8f343da commit 9e83525

File tree

1 file changed

+52
-76
lines changed

1 file changed

+52
-76
lines changed

reference/curl/constants_curl_setopt.xml

Lines changed: 52 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,10 @@
485485
</term>
486486
<listitem>
487487
<para>
488-
!!! effect の翻訳がいまいち
489488
このオプションに <literal>1</literal> を設定すると、
490-
使っているプロトコルによって異なる効果を及ぼします。
491-
!!!
492-
FTP and SFTP based URLs will list only the names of files in a directory.
493-
POP3 will list the email message or messages on the POP3 server.
489+
使っているプロトコルによって異なる動作をします。
490+
FTP および SFTP ベースの URL では、ディレクトリ内のファイル名のみを列挙します。
491+
POP3 では、POP3 サーバー上の電子メールメッセージを列挙します。
494492
FILE に対してこのオプションは効果がありません。
495493
このモードではディレクトリは常に列挙されるからです。
496494
このオプションを <constant>CURLOPT_WILDCARDMATCH</constant> と一緒に使うと、
@@ -672,9 +670,8 @@
672670
</term>
673671
<listitem>
674672
<para>
675-
!!!
676-
Like <constant>CURLOPT_RANDOM_FILE</constant>, except a filename
677-
to an Entropy Gathering Daemon socket.
673+
<constant>CURLOPT_RANDOM_FILE</constant> と似ていますが、
674+
Entropy Gathering Daemon ソケットのファイル名を指定します。
678675
cURL 7.7.0 以降で利用可能ですが、cURL 7.84.0 以降は非推奨となりました。
679676
</para>
680677
</listitem>
@@ -876,8 +873,7 @@
876873
</term>
877874
<listitem>
878875
<para>
879-
!!!
880-
Set to &true; to only list the names of an FTP directory.
876+
FTP ディレクトリの名前のみを列挙するには &true; を指定します。
881877
cURL 7.1.0 以降で利用可能ですが、cURL 7.16.4 以降は非推奨となりました。
882878
</para>
883879
</listitem>
@@ -939,9 +935,8 @@
939935
</term>
940936
<listitem>
941937
<para>
942-
!!!
943-
Pass a <type>string</type> that will be used to try to authenticate over FTP
944-
if the <literal>USER/PASS</literal> negotiation fails.
938+
<literal>USER/PASS</literal> ネゴシエーションが失敗した場合に、
939+
FTP での認証を試行するのに使われる <type>string</type> を指定します。
945940
cURL 7.15.5 以降で利用可能です。
946941
</para>
947942
</listitem>
@@ -953,9 +948,8 @@
953948
</term>
954949
<listitem>
955950
<para>
956-
!!!
957-
Set to &true; to create missing directories when an FTP operation
958-
encounters a path that currently doesn't exist.
951+
&true; を指定すると、FTP の操作で今存在しないパスに遭遇した場合に
952+
足りないディレクトリを作成します。
959953
cURL 7.10.7 以降で利用可能です。
960954
</para>
961955
</listitem>
@@ -967,9 +961,8 @@
967961
</term>
968962
<listitem>
969963
<para>
970-
!!!
971-
Tell cURL which method to use to reach a file on a FTP(S) server. Possible values are
972-
any of the <constant>CURLFTPMETHOD_<replaceable>*</replaceable></constant> constants.
964+
FTP(S) サーバー上のファイルにアクセスするために使用するメソッドを cURL に指示します。
965+
指定できる値は <constant>CURLFTPMETHOD_<replaceable>*</replaceable></constant> 定数のいずれかです。
973966
デフォルト値は <constant>CURLFTPMETHOD_MULTICWD</constant> です。
974967
cURL 7.15.1 以降で利用可能です。
975968
</para>
@@ -1246,8 +1239,7 @@
12461239
</term>
12471240
<listitem>
12481241
<para>
1249-
!!!
1250-
An <type>array</type> of HTTP <literal>200</literal> responses that will be treated as valid responses and not as errors.
1242+
エラーではなく有効なレスポンスとして扱われる HTTP <literal>200</literal> レスポンスの <type>array</type> を指定します。
12511243
cURL 7.10.3 以降で利用可能です。
12521244
</para>
12531245
</listitem>
@@ -1368,10 +1360,9 @@
13681360
</term>
13691361
<listitem>
13701362
<para>
1371-
!!!
1372-
If set to <literal>1</literal>,
1373-
ignore the <literal>Content-Length</literal> header in the HTTP response
1374-
and ignore asking for or relying on it for FTP transfers.
1363+
<literal>1</literal> に設定すると、
1364+
HTTP レスポンスの <literal>Content-Length</literal> ヘッダーを無視します。
1365+
FTP 転送の際には、それを要求したりそれに依存したりしなくなります。
13751366
デフォルト値は <literal>0</literal> です。
13761367
cURL 7.14.1 以降で利用可能です。
13771368
</para>
@@ -1384,9 +1375,8 @@
13841375
</term>
13851376
<listitem>
13861377
<para>
1387-
!!!
1388-
Accepts a file handle <type>resource</type>
1389-
to the file that the transfer should be read from when uploading.
1378+
アップロード時に読み込まれるファイルの
1379+
ファイルハンドル <type>resource</type> を指定します。
13901380
cURL 7.1.0 以降で利用可能ですが、cURL 7.9.7 以降は非推奨となりました。
13911381
Use <constant>CURLOPT_READDATA</constant> instead.
13921382
</para>
@@ -1429,10 +1419,8 @@
14291419
</term>
14301420
<listitem>
14311421
<para>
1432-
!!!
1433-
Allows an application to select what kind of IP addresses to use when
1434-
resolving host names. This is only interesting when using host names that
1435-
resolve addresses using more than one version of IP.
1422+
ホスト名を解決する際に、使用する IP アドレスの種類をアプリケーションが選択できるようにします。
1423+
これは、複数の IP バージョンを利用してアドレスを解決するようなホスト名を使う場合のみ意味があります。
14361424
Set to one of the
14371425
<constant>CURL_IPRESOLVE_<replaceable>*</replaceable></constant> constants.
14381426
デフォルト値は <constant>CURL_IPRESOLVE_WHATEVER</constant> です。
@@ -1466,10 +1454,9 @@
14661454
</term>
14671455
<listitem>
14681456
<para>
1469-
!!!
1470-
Pass a <type>string</type> with binary data of a CA SSL certificate in PEM format.
1471-
If set, an additional check against the peer certificate is performed
1472-
to verify the issuer is the one associated with the certificate provided by the option.
1457+
PEM 形式の CA SSL 証明書のバイナリデータが含まれた <type>string</type> を指定します。
1458+
これが設定されていると、ピア証明書に対する追加のチェックが実行され、
1459+
発行者がこのオプションで提供された証明書に関連付けられていることを確認します。
14731460
PHP 8.1.0 以降かつ cURL 7.71.0 以降で利用可能です。
14741461
</para>
14751462
</listitem>
@@ -1481,10 +1468,9 @@
14811468
</term>
14821469
<listitem>
14831470
<para>
1484-
!!!
1485-
Set to &true; to keep sending the request body if the HTTP code returned is equal to or larger than <literal>300</literal>.
1486-
The default action would be to stop sending
1487-
and close the stream or connection. Suitable for manual NTLM authentication.
1471+
&true; を指定すると、返された HTTP コードが <literal>300</literal> 以上の場合にリクエストボディの送信を継続するようになります。
1472+
デフォルトでは、送信を中止し、ストリームないし接続を閉じます。
1473+
手動 NTLM 認証に適しています。
14881474
Most applications do not need this option.
14891475
PHP 7.3.0 以降かつ cURL 7.51.0 以降で利用可能です。
14901476
</para>
@@ -1574,9 +1560,8 @@
15741560
</term>
15751561
<listitem>
15761562
<para>
1577-
!!!
1578-
The number of attempts cURL makes to find a working local port number,
1579-
starting with the one set with <constant>CURLOPT_LOCALPORT</constant>.
1563+
cURL が動作するローカルポート番号を探す試行回数を指定します。
1564+
検索は <constant>CURLOPT_LOCALPORT</constant> で設定されたポートから開始されます。
15801565
このオプションは、有効な <type>int</type> にキャストできる任意の値を受け付けます。
15811566
デフォルト値は <literal>1</literal> です。
15821567
cURL 7.15.2 以降で利用可能です。
@@ -1727,10 +1712,9 @@
17271712
</term>
17281713
<listitem>
17291714
<para>
1730-
!!!
1731-
The maximum amount of persistent connections that are allowed.
1732-
When the limit is reached, the oldest one in the cache is closed
1733-
to prevent increasing the number of open connections.
1715+
永続化された接続の最大数を指定します。
1716+
制限に達すると、開いている接続の数が増えないよう、
1717+
キャッシュ内の最も古いものが閉じられます。
17341718
このオプションは、有効な <type>int</type> にキャストできる任意の値を受け付けます。
17351719
cURL 7.7.0 以降で利用可能です。
17361720
</para>
@@ -1743,11 +1727,9 @@
17431727
</term>
17441728
<listitem>
17451729
<para>
1746-
!!!
1747-
Sets the maximum accepted size (in bytes) of a file to download.
1748-
If the file requested is found larger than this value,
1749-
the transfer is aborted
1750-
and <constant>CURLE_FILESIZE_EXCEEDED</constant> is returned.
1730+
ダウンロードするファイルの最大受入サイズ (バイト単位) を指定します。
1731+
リクエストされたファイルがこの値よりも大きいことがわかると、
1732+
転送が中止され、<constant>CURLE_FILESIZE_EXCEEDED</constant> が返されます。
17511733
Passing <literal>0</literal> disables this option,
17521734
and passing a negative size returns a
17531735
<constant>CURLE_BAD_FUNCTION_ARGUMENT</constant>.
@@ -1770,11 +1752,10 @@
17701752
</term>
17711753
<listitem>
17721754
<para>
1773-
!!!
1774-
The maximum file size in bytes allowed to download. If the file requested is found larger than this value,
1775-
the transfer will not start and <constant>CURLE_FILESIZE_EXCEEDED</constant> will be returned.
1776-
The file size is not always known prior to download, and for such files this option has no effect even if
1777-
the file transfer ends up being larger than this given limit.
1755+
ダウンロードが許可される最大ファイルサイズ (バイト単位) です。リクエストされたファイルがこの値よりも大きいことが判明すると、
1756+
転送は開始されず、<constant>CURLE_FILESIZE_EXCEEDED</constant> が返されます。
1757+
ファイルサイズが必ずしもダウンロード前にわかるとは限りません。そのようなファイルに対しては、
1758+
ファイル転送が結果的にこの制限よりも大きくなったとしても、このオプションは効果がありません。
17781759
このオプションは、有効な <type>int</type> にキャストできる任意の値を受け付けます。
17791760
PHP 8.2.0 以降かつ cURL 7.11.0 以降で利用可能です。
17801761
</para>
@@ -1852,10 +1833,9 @@
18521833
</term>
18531834
<listitem>
18541835
<para>
1855-
!!!
1856-
Set to a bitmask of <constant>CURLMIMEOPT_<replaceable>*</replaceable></constant>
1857-
constants. Currently there is only one available option:
1858-
<constant>CURLMIMEOPT_FORMESCAPE</constant>.
1836+
<constant>CURLMIMEOPT_<replaceable>*</replaceable></constant> 定数のビットマスクを指定します。
1837+
現在利用可能なオプションは、
1838+
<constant>CURLMIMEOPT_FORMESCAPE</constant> のみです。
18591839
PHP 8.3.0 以降かつ cURL 7.81.0 以降で利用可能です。
18601840
</para>
18611841
</listitem>
@@ -1884,10 +1864,9 @@
18841864
</term>
18851865
<listitem>
18861866
<para>
1887-
!!!
1888-
Set to &true; to scan the <filename>~/.netrc</filename>
1889-
file to find a username and password for the remote site that
1890-
a connection is being established with.
1867+
&true; を指定すると、
1868+
接続しているリモートサイトのユーザー名とパスワードを探すために
1869+
<filename>~/.netrc</filename> ファイルをスキャンします。
18911870
cURL 7.1.0 以降で利用可能です。
18921871
</para>
18931872
</listitem>
@@ -1899,11 +1878,10 @@
18991878
</term>
19001879
<listitem>
19011880
<para>
1902-
!!!
1903-
Set a <type>string</type> containing the full path name to a <literal>.netrc</literal> file.
1904-
If this option is omitted and <constant>CURLOPT_NETRC</constant> is set,
1905-
cURL checks for a <literal>.netrc</literal> file
1906-
in the current user's home directory.
1881+
<literal>.netrc</literal> ファイルへのフルパス名を含む <type>string</type> を指定します。
1882+
このオプションが省略され、かつ <constant>CURLOPT_NETRC</constant> が設定されている場合、
1883+
cURL は現在のユーザーのホームディレクトリにある
1884+
<literal>.netrc</literal> ファイルをチェックします。
19071885
cURL 7.11.0 以降で利用可能です。
19081886
</para>
19091887
</listitem>
@@ -1915,12 +1893,10 @@
19151893
</term>
19161894
<listitem>
19171895
<para>
1918-
!!!
1919-
Sets the value of the permissions (<type>int</type>) that is set on newly created directories
1920-
on the remote server. The default value is <literal>0755</literal>.
1921-
The only protocols that can use this are
1922-
<literal>sftp://</literal>, <literal>scp://</literal>
1923-
and <literal>file://</literal>.
1896+
リモートサーバーで新しく作成されたディレクトリに設定されるパーミッションの値 (<type>int</type>) を設定します。
1897+
デフォルト値は <literal>0755</literal> です。
1898+
これを使用できるプロトコルは <literal>sftp://</literal>、<literal>scp://</literal>、
1899+
<literal>file://</literal> のみです。
19241900
cURL 7.16.4 以降で利用可能です。
19251901
</para>
19261902
</listitem>

0 commit comments

Comments
 (0)