curl
ããã¯ãUbuntu OnlineãFedora OnlineãWindowsãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãMACOSãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ã¯ãŒã¯ã¹ããŒã·ã§ã³ã®XNUMXã€ã䜿çšããŠOnWorksç¡æãã¹ãã£ã³ã°ãããã€ããŒã§å®è¡ã§ããã³ãã³ãã«ãŒã«ã§ãã
ããã°ã©ã ïŒ
NAME
curl-URLã転éããŸã
SYNOPSIS
curl [ãªãã·ã§ã³] [URL ...]
DESCRIPTION
curl ãµããŒããããŠãããããã³ã«ã®XNUMXã€ã䜿çšããŠããµãŒããŒãšã®éã§ããŒã¿ã転éããããã®ããŒã«ã§ãã
ïŒDICTãFILEãFTPãFTPSãGOPHERãHTTPãHTTPSãIMAPãIMAPSãLDAPãLDAPSãPOP3ãPOP3SãRTMPã
RTSPãSCPãSFTPãSMBãSMBSãSMTPãSMTPSãTELNETãTFTPïŒã ã³ãã³ãã¯æ©èœããããã«èšèšãããŠããŸã
ãŠãŒã¶ãŒã®æäœãªãã
curlã¯ããããã·ãµããŒãããŠãŒã¶ãŒèªèšŒãFTPãªã©ã®äŸ¿å©ãªããªãã¯ã®ãã¹ããŒããæäŸããŸã
ã¢ããããŒããHTTPãã¹ããSSLæ¥ç¶ãCookieããã¡ã€ã«è»¢éå±¥æŽæžãMetalinkãªã©ã ãšããŠ
以äžã«è¡šç€ºãããããã«ãæ©èœã®æ°ã¯ããªãã®é ãå転ãããŸãïŒ
curlã¯ã転éé¢é£ã®ãã¹ãŠã®æ©èœã«ã€ããŠlibcurlãå©çšããŠããŸãã èŠã ãªãã«ãŒã«(3) 詳现ã«ã€ããŠã¯ã
URL
URLæ§æã¯ãããã³ã«ã«äŸåããŸãã 詳现ãªèª¬æã¯RFC3986ã«ãããŸãã
次ã®ããã«äžæ¬åŒ§å ã«ããŒãã»ãããèšè¿°ããããšã§ãè€æ°ã®URLãŸãã¯URLã®äžéšãæå®ã§ããŸãã
http://siteã{oneãtwoãthree} .com
ãŸãã¯ã次ã®ããã«[]ã䜿çšããŠè±æ°åã·ãªãŒãºã®ã·ãŒã±ã³ã¹ãååŸã§ããŸãã
ftp://ftp.numericals.com/file[1-100] .txt
ftp://ftp.numericals.com/file[001-100] .txtïŒå è¡ãŒãä»ãïŒ
ftp://ftp.letters.com/file[az] .txt
ãã¹ããããã·ãŒã±ã³ã¹ã¯ãµããŒããããŠããŸããããè€æ°ã®ã·ãŒã±ã³ã¹ã䞊ã¹ãŠäœ¿çšã§ããŸãã
http://any.org/archive[1996-1999] / vol [1-4] / part {aãbãc} .html
ã³ãã³ãã©ã€ã³ã§ä»»æã®æ°ã®URLãæå®ã§ããŸãã ãããã¯ã§ãã§ãããããŸã
æå®ãããé åºã§é çªã«ã
ç¯å²ã®ã¹ãããã«ãŠã³ã¿ãŒãæå®ããŠãNçªç®ããšã®æ°åãŸãã¯æåãååŸã§ããŸãã
http://www.numericals.com/file[1-100ïŒ10] .txt
http://www.letters.com/file[azïŒ2] .txt
ã³ãã³ãã©ã€ã³ããã³ããããåŒã³åºããããšãã«[]ãŸãã¯{}ã·ãŒã±ã³ã¹ã䜿çšããå Žåããããã次ã®ããã«ãªããŸãã
ã·ã§ã«ãå¹²æžããªãããã«ãå®å šãªURLãäºéåŒçšç¬Šã§å²ã¿ãŸãã ãã®
ãŸãããïŒãããïŒããªã©ãç¹å¥ã«æ±ãããä»ã®æåã«ãé©çšãããŸãã ãš '*'ã
URLã«IPv6ãŸãŒã³ã€ã³ããã¯ã¹ããšã¹ã±ãŒããããããŒã»ã³ãèšå·ãšã€ã³ã¿ãŒãã§ã€ã¹ã§æå®ããŸã
ååã ã®ããã«
http://[fe80::3%25eth0]/
protocolïŒ//ãã¬ãã£ãã¯ã¹ãªãã§URLãæå®ãããšãcurlã¯ã©ã®ãããã³ã«ãæšæž¬ããããšããŸã
ããªããæããããããŸããã ãã®åŸãããã©ã«ãã§HTTPã«ãªããŸãããé »ç¹ã«äœ¿çšããããããã³ã«ã«åºã¥ããŠä»ã®ãããã³ã«ãè©ŠããŸã
ãã¹ãåã®ãã¬ãã£ãã¯ã¹ã ããšãã°ããftpãã§å§ãŸããã¹ãåã®å Žåã ã«ãŒã«ã¯ããªããæ³å®ããŸã
FTPã話ãããã
curlã¯ãæž¡ãããã®ãURLãšããŠäœ¿çšããããã«æåãå°œãããŸãã ãããæ€èšŒããããšã¯ããŠããŸãã
æ§æçã«æ£ããURLãšããŠã代ããã« éåžžã« ãããäœã§ãªãã©ã«
åãå ¥ããŸãã
curlã¯ãè€æ°ã®ãã¡ã€ã«è»¢éã«æ¥ç¶ãåå©çšããããšããããã
åããµãŒããŒããã®ãã¡ã€ã«ã¯ãè€æ°ã®æ¥ç¶/ãã³ãã·ã§ã€ã¯ãå®è¡ããŸããã ããã¯æ¹åããŸã
é床ã ãã¡ãããããã¯åäžã®ã³ãã³ãã©ã€ã³ã§æå®ããããã¡ã€ã«ã«å¯ŸããŠã®ã¿å®è¡ãããå®è¡ã§ããŸãã
å¥ã ã®curlåŒã³åºãã®éã«äœ¿çšãããŸãã
é²æ ã¡ãŒã¿ãŒ
curlã¯éåžžãæäœäžã«é²è¡ç¶æ³ã¡ãŒã¿ãŒã衚瀺ãã
転éãããããŒã¿ã転éé床ãæšå®æ®ãæéãªã©ã
curlã¯ããã©ã«ãã§ãã®ããŒã¿ã端æ«ã«è¡šç€ºãããããcurlãåŒã³åºããŠ
æäœãã端æ«ã«ããŒã¿ãæžã蟌ãããšããŠããŸãã ç¡å¹ã«ãªããŸã ããã°ã¬ã¹ã¡ãŒã¿ãŒãšããŠ
ããããªããšãåºåããã·ã³ã°ããã°ã¬ã¹ã¡ãŒã¿ãŒãšå¿çããŒã¿ãå°ç¡ãã«ãªããŸãã
HTTP POSTãŸãã¯PUTãªã¯ãšã¹ãã®é²è¡ç¶æ³ã¡ãŒã¿ãŒãå¿ èŠãªå Žåã¯ããªãã€ã¬ã¯ãããå¿ èŠããããŸã
ã·ã§ã«ãªãã€ã¬ã¯ãïŒ>ïŒã-o [ãã¡ã€ã«]ãªã©ã䜿çšãããã¡ã€ã«ãžã®å¿çåºåã
FTPã¢ããããŒãã®å Žåããã®æäœã¯å¿çãåãåºããªããããåãã±ãŒã¹ã§ã¯ãããŸããã
端æ«ãžã®ããŒã¿ã
éåžžã®ã¡ãŒã¿ãŒã®ä»£ããã«ããã°ã¬ã¹ãããŒãã䜿çšãããå Žåã¯ã -# ããªãã®åéã§ãã
OPTIONS
ãªãã·ã§ã³ã¯XNUMXã€ãŸãã¯XNUMXã€ã®ããã·ã¥ã§å§ãŸããŸãã ãªãã·ã§ã³ã®å€ãã¯ã次ã«è¿œå ã®å€ãå¿ èŠãšããŸã
圌ããžã
ãªãã·ã§ã³ã®çããäžç¹éç·ã圢åŒãããšãã°-dã¯ã
ã¹ããŒã¹ã¯æšå¥šãããåºåãæåã§ããããããšãã®å€ã®éã®ã¹ããŒã¹ã é·ã
ãããã«ããã·ã¥ã圢åŒãããšãã°--dataã«ã¯ããã®å€ãšãã®å€ã®éã«ã¹ããŒã¹ãå¿ èŠã§ãã
è¿œå ã®å€ãå¿ èŠãšããªãçãããŒãžã§ã³ã®ãªãã·ã§ã³ã¯ãããã«äœ¿çšã§ããŸã
ããšãã°ããã¹ãŠã®ãªãã·ã§ã³-Oã-Lãããã³-vãäžåºŠã«æå®ã§ããŸãã
-OLvã
äžè¬ã«ããã¹ãŠã®ããŒã«ãªãã·ã§ã³ã¯-ã§æå¹ã«ãªããŸããªãã·ã§ã³ ãããŠãŸãããç¡å¹ã«
--NO-ãªãã·ã§ã³ã ã€ãŸãããŸã£ããåããªãã·ã§ã³åã䜿çšããŸãããæ¥é èŸãšããŠãno-ããä»ããŸãã
ãã ãããã®ãªã¹ãã§ã¯ãã»ãšãã©ã®å Žåããããã®--optionããŒãžã§ã³ã®ã¿ããªã¹ãããŠè¡šç€ºããŠããŸãã ïŒãã®
--noãªãã·ã§ã³ã®æŠå¿µã¯7.19.0ã§è¿œå ãããŸããã 以åã¯ãã»ãšãã©ã®ãªãã·ã§ã³ããªã³/ãªãã«åãæ¿ããããŠããŸãã
åãã³ãã³ãã©ã€ã³ãªãã·ã§ã³ãç¹°ãè¿ã䜿çšããå ŽåãïŒ
-ïŒã - ããã°ã¬ã¹ããŒ
æšæºã®ããã°ã¬ã¹ããŒã§ã¯ãªããåçŽãªããã°ã¬ã¹ããŒãšããŠã«ãŒã«è¡šç€ºã®é²è¡ç¶æ³ãäœæããŸãã
æ å ±ãã¡ãŒã¿ãŒã
-ïŒã - 次
次ã®URLãšé¢é£ããURLã«å¯ŸããŠå¥ã®æäœã䜿çšããããã«curlã«æ瀺ããŸã
ãªãã·ã§ã³ã ããã«ãããããããç¬èªã®URLãªã¯ãšã¹ããéä¿¡ã§ããŸãã
ããšãã°ãç°ãªããŠãŒã¶ãŒåãããããã®ã«ã¹ã¿ã ãªã¯ãšã¹ããªã©ã®ãªãã·ã§ã³ã
ïŒ7.36.0ã§è¿œå ïŒ
-0ã-http1.0
ïŒHTTPïŒå éšã§äœ¿çšãã代ããã«HTTPããŒãžã§ã³1.0ã䜿çšããããã«curlã«æ瀺ããŸã
æšå¥šïŒHTTP1.1ã
--http1.1
ïŒHTTPïŒHTTPããŒãžã§ã³1.1ã䜿çšããããã«curlã«æ瀺ããŸãã ããã¯å éšã®ããã©ã«ãããŒãžã§ã³ã§ãã
ïŒ7.33.0ã§è¿œå ïŒ
--http2
ïŒHTTPïŒHTTP 2ã䜿çšããŠãªã¯ãšã¹ããçºè¡ããããã«curlã«æ瀺ããŸããããã«ã¯ã
åºç€ãšãªãlibcurlã¯ãããããµããŒãããããã«æ§ç¯ãããŸããã ïŒ7.33.0ã§è¿œå ïŒ
--no-npn
NPNTLSæ¡åŒµãç¡å¹ã«ããŸãã libcurlãã§æ§ç¯ãããå ŽåãNPNã¯ããã©ã«ãã§æå¹ã«ãªã£ãŠããŸã
NPNããµããŒãããSSLã©ã€ãã©ãªã NPNã¯ãHTTP2ããµããŒãããlibcurlã«ãã£ãŠäœ¿çšãããŸãã
httpsã»ãã·ã§ã³äžã«ãµãŒããŒãšHTTP2ãµããŒããããŽã·ãšãŒãããŸãã
ïŒ7.36.0ã§è¿œå ïŒ
--no-alpn
ALPNTLSæ¡åŒµãç¡å¹ã«ããŸãã libcurlããã«ããããå ŽåãALPNã¯ããã©ã«ãã§æå¹ã«ãªã£ãŠããŸã
ALPNããµããŒãããSSLã©ã€ãã©ãªã䜿çšããŸãã ALPNã¯ããµããŒãããlibcurlã«ãã£ãŠäœ¿çšãããŸã
httpsã»ãã·ã§ã³äžã«ãµãŒããŒãšHTTP2ãµããŒããããŽã·ãšãŒãããããã®HTTP2ã
ïŒ7.36.0ã§è¿œå ïŒ
-1ã-tlsv1
ïŒSSLïŒãªã¢ãŒãTLSãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«TLSããŒãžã§ã³1.xã䜿çšããããã«åŒ·å¶ããŸãã
ãªãã·ã§ã³ã䜿çšã§ããŸã --tlsv1.0, --tlsv1.1, --tlsv1.2 TLSããŒãžã§ã³ãå¶åŸ¡ãã
ããæ£ç¢ºã«ã¯ïŒäœ¿çšäžã®SSLããã¯ãšã³ãããã®ãããªã¬ãã«ã®å¶åŸ¡ããµããŒãããŠããå ŽåïŒã
-2ã-sslv2
ïŒSSLïŒãªã¢ãŒãSSLãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«SSLããŒãžã§ã³2ã䜿çšããããã«åŒ·å¶ããŸãã
æã curlã¯SSLv2ãµããŒããªãã§æ§ç¯ãããŸãã SSLv2ã¯å®å šã§ã¯ãªããšåºãèããããŠããŸã
ïŒRFC 6176ãåç §ïŒã
-3ã-sslv3
ïŒSSLïŒãªã¢ãŒãSSLãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«SSLããŒãžã§ã³3ã䜿çšããããã«åŒ·å¶ããŸãã
æã curlã¯SSLv3ãµããŒããªãã§æ§ç¯ãããŸãã SSLv3ã¯å®å šã§ã¯ãªããšåºãèããããŠããŸã
ïŒRFC 7568ãåç §ïŒã
-4ã-ipv4
ãã®ãªãã·ã§ã³ã¯ãååãIPv4ã¢ãã¬ã¹ã®ã¿ã«è§£æ±ºããããã«curlã«æ瀺ããŸããããšãã°ã
IPv6ãè©ŠããŠãã ããã
-6ã-ipv6
ãã®ãªãã·ã§ã³ã¯ãååãIPv6ã¢ãã¬ã¹ã®ã¿ã«è§£æ±ºããããã«curlã«æ瀺ããŸããããšãã°ã
IPv4ãè©ŠããŠãã ããã
-aã-append
ïŒFTP / SFTPïŒã¢ããããŒãã§äœ¿çšãããšãcurlãã¿ãŒã²ãããã¡ã€ã«ã«è¿œå ãããŸã
äžæžããã代ããã«ã ãªã¢ãŒããã¡ã€ã«ãååšããªãå Žåã¯äœæãããŸãã
ãã®ãã©ã°ã¯ãäžéšã®SFTPãµãŒããŒïŒOpenSSHãå«ãïŒã§ã¯ç¡èŠãããããšã«æ³šæããŠãã ããã
-Aã-user-agent
ïŒHTTPïŒHTTPãµãŒããŒã«éä¿¡ããUser-Agentæååãæå®ããŸãã ããã€ãã®æªãããš
ãã®ãã£ãŒã«ãããMozilla / 4.0ãã«èšå®ãããŠããªãå ŽåãCGIã¯å€±æããŸãã æååå ã®ç©ºçœããšã³ã³ãŒãããã«ã¯ã
æååãäžéåŒçšç¬Šã§å²ã¿ãŸãã ããã¯ã -NSã
- ããã ãã¡ãããªãã·ã§ã³ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--anyauth
ïŒHTTPïŒcurlã«ãèªèšŒæ¹æ³ãèªåã§ç解ããæãå€ã䜿çšããããã«æ瀺ããŸã
ãªã¢ãŒããµã€ãããµããŒããããšäž»åŒµããŠãããã®ãä¿è·ããŸãã ããã¯ãæåã«ãªã¯ãšã¹ããè¡ãããšã«ãã£ãŠè¡ãããŸã
å¿çããããŒããã§ãã¯ãããããäœåãªãããã¯ãŒã¯ã©ãŠã³ããçºçããå¯èœæ§ããããŸã-
æ è¡ã ããã¯ãç¹å®ã®èªèšŒæ¹æ³ãèšå®ãã代ããã«äœ¿çšãããŸãã
ã§ã§ãã -åºæ¬, - ãã€ãžã§ã¹ã, --ntlm, - 亀æž.
stdinããã¢ããããŒãããå Žåã¯ã-anyauthã®äœ¿çšã¯ãå§ãããŸããã
ããŒã¿ãXNUMXåéä¿¡ããå¿ èŠãããããã®åŸã¯ã©ã€ã¢ã³ããå·»ãæ»ãããšãã§ããå¿ èŠããããŸãã ããã
stdinããã¢ããããŒããããšãã«å¿ èŠã«ãªãå Žåã¯ãã¢ããããŒãæäœã倱æããŸãã
-bã-cookie
ïŒHTTPïŒããŒã¿ãCookieãšããŠHTTPãµãŒããŒã«æž¡ããŸãã ããããããŒã¿ã§ã
以åã«ãµãŒããŒãããSet-CookieïŒãè¡ã§åä¿¡ããŸããã ããŒã¿ã¯æ¬¡ã®ããã«ãªããŸã
圢åŒã¯ãNAME1 = VALUE1; NAME2 = VALUE2ãã§ãã
è¡ã«ã=ãèšå·ã䜿çšãããŠããªãå Žåã¯ãèªã¿åãã«äœ¿çšãããã¡ã€ã«åãšããŠæ±ãããŸã
以åã«ä¿åãããCookieè¡ã
ãããã ãã®ã¡ãœããã䜿çšãããšãã«ãŒã«ãäœæããCookieãšã³ãžã³ãã¢ã¯ãã£ãã«ãªããŸã
çä¿¡Cookieãèšé²ããŸãããããçµã¿åãããŠäœ¿çšââããå Žåã«äŸ¿å©ã§ãã
-Lã - äœçœ® ãªãã·ã§ã³ã Cookieãèªã¿åããã¡ã€ã«ã®ãã¡ã€ã«åœ¢åŒ
ãã¬ãŒã³HTTPããããŒãŸãã¯Netscape / MozillaCookieãã¡ã€ã«åœ¢åŒã§ããå¿ èŠããããŸãã
ã§æå®ããããã¡ã€ã« -NSã - ã¯ãããŒ å ¥åãšããŠã®ã¿äœ¿çšãããŸãã ã¯ãããŒã¯ãããŸãã
ãã¡ã€ã«ã«æžã蟌ãŸããŸãã Cookieãä¿åããã«ã¯ã -NSã - ã¯ãããŒçŒ¶ ãªãã·ã§ã³ãéžæããŸãã
ãã®ãªãã·ã§ã³ã䜿çšããŠããå Žåã¯æ³šæããŠãã ãããè€æ°ã®è»¢éãçºçããå¯èœæ§ããããŸãã ããã
NAME1 = VALUE1ã䜿çšããŸãã 圢åŒããŸãã¯ãã¡ã€ã«å ã§Set-Cookie圢åŒã䜿çšãã䜿çšããªãã§ãã ãã
ãã¡ã€ã³ãæå®ãããšãCookieãä»»æã®ãã¡ã€ã³ã«éä¿¡ãããŸãïŒãªãã€ã¬ã¯ãåŸã
ç¶ããŠïŒããµãŒããŒãèšå®ããCookieã§å€æŽããããšã¯ã§ããŸããã ã¯ãããŒãšã³ãžã³ã
æå¹ã«ãªã£ãŠããŠããµãŒããŒãåãååã®Cookieãèšå®ãããšãäž¡æ¹ã
ãã®ãµãŒããŒãžã®å°æ¥ã®è»¢éãããããæå³ãããã®ã§ã¯ãããŸããã ãããã«å¯ŸåŠããã«ã¯
åé¡ã¯ãSet-Cookieã«ãã¡ã€ã³ãèšå®ããïŒãµããã¡ã€ã³ãå«ãïŒãã
Netscapeãã©ãŒãããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Bã-use-ascii
ïŒFTP / LDAPïŒASCII転éãæå¹ã«ããŸãã FTPã®å Žåãããã¯ã
ã; type = Aãã§çµããURLã ãã®ãªãã·ã§ã³ã䜿çšãããšãstdoutã«éä¿¡ãããããŒã¿ãããã¹ãã«ãªããŸã
win32ã·ã¹ãã ã®ã¢ãŒãã
-åºæ¬
ïŒHTTPïŒãªã¢ãŒããã¹ãã§HTTPåºæ¬èªèšŒã䜿çšããããã«curlã«æ瀺ããŸãã ããã¯
ããã©ã«ãããã³ãã®ãªãã·ã§ã³ã¯ãããã䜿çšããŠãªãŒããŒã©ã€ãããªãéããéåžžã¯ç¡æå³ã§ãã
å¥ã®èªèšŒæ¹æ³ãèšå®ãã以åã«èšå®ããããªãã·ã§ã³ïŒ --ntlm,
- ãã€ãžã§ã¹ããŸã㯠- 亀æž).
ãšäžç·ã«äœ¿çš -uã - ãŠãŒã¶ãŒ ãš -NSã - ãããã·ãŒ.
åç § --ãããã·-åºæ¬.
-cã-cookie-jar
ïŒHTTPïŒå®äºåŸã«curlããã¹ãŠã®Cookieãæžã蟌ããã¡ã€ã«ãæå®ããŸã
æè¡ã Curlã¯ãæå®ããããã¡ã€ã«ãã以åã«èªã¿åã£ããã¹ãŠã®Cookieãšã
ãªã¢ãŒããµãŒããŒããåä¿¡ãããã¹ãŠã®Cookieã ã¯ãããŒãç¥ãããŠããªãå ŽåãããŒã¿ã¯ãããŸãã
æžãããã ãã¡ã€ã«ã¯ãNetscapeCookieãã¡ã€ã«åœ¢åŒã䜿çšããŠæžã蟌ãŸããŸãã ããããããã
ãã¡ã€ã«åãäžéããã·ã¥ã-ãã«èšå®ãããšãCookieã¯stdoutã«æžã蟌ãŸããŸãã
ãã®ã³ãã³ãã©ã€ã³ãªãã·ã§ã³ã¯ãcurlã¬ã³ãŒããäœæããCookieãšã³ãžã³ãã¢ã¯ãã£ãã«ããŸãã
ã¯ãããŒã䜿çšããŠãã ããã ãããã¢ã¯ãã£ãã«ããå¥ã®æ¹æ³ã¯ã -NSã - ã¯ãã㌠ãªãã·ã§ã³ãéžæããŸãã
Cookie jarãäœæãŸãã¯æžã蟌ã¿ã§ããªãå Žåãcurlæäœå šäœã¯å®è¡ãããŸããã
倱æãããããšã©ãŒãæ確ã«å ±åããããšããã§ããŸãã -vã䜿çšãããšèŠåã衚瀺ãããŸããã
ããã¯ããã®æããèŽåœçãªç¶æ³ã«ã€ããŠããªããåŸãå¯äžã®ç®ã«èŠãããã£ãŒãããã¯ã§ãã
ãã¡ã€ã³ãªãã§Set-Cookie圢åŒã§ã€ã³ããŒãããã7.43.0以éã®Cookie
ååã¯ãã®ãªãã·ã§ã³ã§ã¯ãšã¯ã¹ããŒããããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã«æå®ãããã¡ã€ã«åã䜿çšãããŸãã
-Cã-continue-at
æå®ããããªãã»ããã§åã®ãã¡ã€ã«è»¢éãç¶è¡/åéããŸãã äžãããããªãã»ããã¯
ã¹ããããããæ£ç¢ºãªãã€ãæ°ïŒå é ããæ°ããŠïŒ
転éå ã«è»¢éãããåã®ãœãŒã¹ãã¡ã€ã«ã ã¢ããããŒãã§äœ¿çšããå Žåã
FTPãµãŒããŒã³ãã³ãSIZEã¯curlã§ã¯äœ¿çšãããŸããã
ã-C-ãã䜿çšããŠã転éãåéããå Žæ/æ¹æ³ãèªåçã«æ€åºããããã«curlã«æ瀺ããŸãã
次ã«ãæå®ãããåºå/å ¥åãã¡ã€ã«ã䜿çšããŠãããææ¡ããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-æå·
ïŒSSLïŒæ¥ç¶ã§äœ¿çšããæå·ãæå®ããŸãã æå·ã®ãªã¹ãã¯
æå¹ãªæå·ãæå®ããŠãã ããã ãã®URLã®SSLæå·ãªã¹ãã®è©³çŽ°ãèªãã§ãã ããïŒ
https://www.openssl.org/docs/apps/ciphers.html
NSSæå·ã¯ãOpenSSLãGnuTLSãšã¯ç°ãªãæ¹æ³ã§å®è¡ãããŸãã NSSã®å®å šãªãªã¹ã
æå·ã¯ã次ã®URLã®NSSCipherSuiteãšã³ããªã«ãããŸãã
https://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-å§çž®
ïŒHTTPïŒcurlããµããŒãããã¢ã«ãŽãªãºã ã®XNUMXã€ã䜿çšããŠãå§çž®ãããå¿çãèŠæ±ãã
å§çž®ãããŠããªãããã¥ã¡ã³ããä¿åããŸãã ãã®ãªãã·ã§ã³ã䜿çšããããµãŒããŒã
ãµããŒããããŠããªããšã³ã³ãŒãã£ã³ã°ãcurlã¯ãšã©ãŒãå ±åããŸãã
--connect-timeout
curlã®æ¥ç¶ã«ãããæ倧æéïŒç§åäœïŒã ããã¯å¶éããã ãã§ã
æ¥ç¶ãã§ãŒãºãªã®ã§ãcurlãæå®ãããæéå ã«æ¥ç¶ãããšãç¶ç¶ããŸã
-ããã§ãªãå Žåã¯çµäºããŸãã ããŒãžã§ã³7.32.0以éããã®ãªãã·ã§ã³ã¯XNUMXé²å€ãåãå ¥ããŸãã
åç §ããŠãã ãã -NSã --æ倧æé ãªãã·ã§ã³ãéžæããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--create-dirs
ãšçµã¿åãããŠäœ¿çšââããå Žå -o ãªãã·ã§ã³ãcurlã¯å¿ èŠãªããŒã«ã«ãäœæããŸã
å¿ èŠã«å¿ããŠãã£ã¬ã¯ããªéå±€ã ãã®ãªãã·ã§ã³ã¯ãã§èšåãããdirãäœæããŸã -o
ãªãã·ã§ã³ãä»ã«ã¯äœããããŸããã ã®å Žå -o ãã¡ã€ã«åã¯dirã䜿çšããªãããdirsãèšåããŠããå Žå
ãã§ã«ååšããå Žåãdirã¯äœæãããŸããã
FTPãŸãã¯SFTPã䜿çšãããšãã«ãªã¢ãŒããã£ã¬ã¯ããªãäœæããã«ã¯ã --ftp-create-dirs.
--crlfã¢ããããŒãæã«LFãCRLFã«å€æããŸãã MVSïŒOS / 390ïŒã«åœ¹ç«ã¡ãŸãã
ïŒSMTPã¯7.40.0ã§è¿œå ãããŸããïŒ
--crlfile
ïŒHTTPS / FTPSïŒèšŒææžå€±å¹ãªã¹ããå«ãPEM圢åŒã䜿çšããŠãã¡ã€ã«ãæäŸãã
åãæ¶ããããšèŠãªããããã¢èšŒææžãæå®ããå ŽåããããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
ïŒ7.19.7ã§è¿œå ïŒ
-dã-data
ïŒHTTPïŒPOSTãªã¯ãšã¹ãã§æå®ãããããŒã¿ãHTTPãµãŒããŒã«éä¿¡ããŸãã
ãŠãŒã¶ãŒãHTMLãã©ãŒã ã«å ¥åãã
éä¿¡ãã¿ã³ã ããã«ãããcurlã¯ã䜿çšããŠããŒã¿ããµãŒããŒã«æž¡ããŸãã
content-type application / x-www-form-urlencodedã ãšæ¯èŒãã -NSã - 圢.
-NSã - ããŒã¿ ãšåãã§ãã --data-ascii. --ããŒã¿ç ã»ãŒåãã§ãããããã§ã¯ãããŸãã
@æåã®ç¹å¥ãªè§£éããããŸãã çŽç²ã«ãã€ããªã®ããŒã¿ãæçš¿ããã«ã¯ã
代ããã« --ããŒã¿ãã€ã㪠ãªãã·ã§ã³ã ãã©ãŒã ã®å€ãURLãšã³ã³ãŒãããã«ã¯
䜿çšã§ãããã£ãŒã«ã --data-urlencode.
ãããã®ãªãã·ã§ã³ã®ãããããåãã³ãã³ãã©ã€ã³ã§è€æ°å䜿çšãããŠããå ŽåãããŒã¿
æå®ãããéšåã¯ãåºåãèšå·ïŒèšå·ã§ããŒãžãããŸãã ãããã£ãŠã
'-d name = daniel -dkill = lousy'ã¯ã次ã®ãããªæçš¿ãã£ã³ã¯ãçæããŸã
'name = danielïŒskill = lousy'ã
ããŒã¿ãæå@ã§å§ããå Žåãæ®ãã¯ãã¡ã€ã«åã«ããŠã
ããã®ããŒã¿ããŸãã¯-curlã«stdinããã®ããŒã¿ãèªã¿åããããå Žåã è€æ°ã®ãã¡ã€ã«ãã§ããŸã
ãŸãæå®ãããŸãã ãããã£ãŠããfoobarããšããååã®ãã¡ã€ã«ããã®ããŒã¿ã®æçš¿ã¯ã
- ããŒã¿ @foobarã --dataããã®ãããªãã¡ã€ã«ããèªã¿åãããã«æ瀺ããããšããã£ãªããžãªã¿ãŒã³
æ¹è¡ã¯åé€ãããŸãã @æåã«
ç¹å¥ãªè§£éã®äœ¿çš --ããŒã¿ç ã代ããã«ã䜿ããã ããã
-Dã-dump-header
æå®ããããã¡ã€ã«ã«ãããã³ã«ããããŒãæžã蟌ã¿ãŸãã
ãã®ãªãã·ã§ã³ã¯ãHTTPãµã€ãã®ããããŒãä¿åããå Žåã«äŸ¿å©ã§ãã
ããªãã«éä¿¡ããŸãã ããããŒããã®Cookieã¯ãXNUMXçªç®ã®ã«ãŒã«ã§èªã¿åãããšãã§ããŸã
ã䜿çšããåŒã³åºã -NSã - ã¯ãã㌠ãªãã·ã§ã³ïŒ The -NSã - ã¯ãããŒçŒ¶ ãªãã·ã§ã³ã¯
ã¯ãããŒãä¿åããããã®ããè¯ãæ¹æ³ã
FTPã§äœ¿çšãããå ŽåãFTPãµãŒããŒã®å¿çè¡ã¯ãããããŒããšèŠãªãããŸãã
ãããã£ãŠãããã«ä¿åãããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--data-ascii
èŠã -NSã - ããŒã¿.
--data-binary
ïŒHTTPïŒããã¯ãè¿œå ã®åŠçãäžåè¡ããã«ãæå®ããããšããã«ããŒã¿ãæçš¿ããŸãã
ããŒã¿ãæå@ã§å§ããå Žåãæ®ãã¯ãã¡ã€ã«åã§ããå¿ èŠããããŸãã ããŒã¿ã¯
ãšåæ§ã®æ¹æ³ã§æçš¿ --data-ascii æ¹è¡ãšãã£ãªããžãé€ããŠã
è¿åã¯ä¿æãããå€æã¯è¡ãããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã«ç¶ããã®ãããŒã¿ãè¿œå ããŸã
ã§èª¬æãããŠããããã« -NSã - ããŒã¿.
--data-raw
ïŒHTTPïŒããã¯åæ§ã«ããŒã¿ãæçš¿ããŸã - ããŒã¿ ããããç¹å¥ãªè§£éã¯ãããŸãã
@æåã®ã èŠã -NSã - ããŒã¿ã ïŒ7.43.0ã§è¿œå ïŒ
--data-urlencode
ïŒHTTPïŒããã¯ãä»ã®--dataãªãã·ã§ã³ãšåæ§ã«ã次ã®ç¹ãé€ããŠããŒã¿ãæçš¿ããŸãã
ããã«ãããURLãšã³ã³ãŒããå®è¡ãããŸãã ïŒ7.18.0ã§è¿œå ïŒ
CGIã«æºæ ããã«ã¯ã äžéšã¯ã§å§ãŸãå¿ èŠããããŸã å ç¶ããŠ
ã»ãã¬ãŒã¿ãšã³ã³ãã³ãä»æ§ã The äžéšã¯ãã䜿çšããŠã«ãŒã«ã«æž¡ãããšãã§ããŸã
次ã®æ§æã®ããããïŒ
ã³ã³ãã³ã
ããã«ãããcurl URLãšã³ã³ãŒããäœæãããã³ã³ãã³ããæž¡ãããŸãã 泚æããŠãã ãã
ã³ã³ãã³ãã«=ãŸãã¯@èšå·ãå«ãŸããªãããã«ããããã
æ§æã以äžã®ä»ã®ã±ãŒã¹ã®XNUMXã€ãšäžèŽãããŠãã ããïŒ
=ã³ã³ãã³ã
ããã«ãããcurl URLãšã³ã³ãŒããäœæãããã³ã³ãã³ããæž¡ãããŸãã äžèš=
èšå·ã¯ããŒã¿ã«å«ãŸããŠããŸããã
name = content
ããã«ãããcurl URLãšã³ã³ãŒããã³ã³ãã³ãéšåã«ãªãããããæž¡ãããŸãã ãäºæ¿ãã ãã
ååã®éšåã¯ãã§ã«URLãšã³ã³ãŒããããŠããå¿ èŠããããŸãã
@ãã¡ã€ã«å
ããã«ãããæå®ããããã¡ã€ã«ïŒæ¹è¡ãå«ãïŒããcurlããŒãããŒã¿ãäœæãããŸãã
ãã®ããŒã¿ãURLãšã³ã³ãŒãããPOSTã§æž¡ããŸãã
name @ filename
ããã«ãããæå®ããããã¡ã€ã«ïŒæ¹è¡ãå«ãïŒããcurlããŒãããŒã¿ãäœæãããŸãã
ãã®ããŒã¿ãURLãšã³ã³ãŒãããPOSTã§æž¡ããŸãã ååã®éšåã¯çãããªããŸã
èšå·ãè¿œå ãããçµæãšã㊠name = urlencoded-file-contentã ååã«æ³šæããŠãã ãã
ãã§ã«URLãšã³ã³ãŒããããŠããããšãæåŸ ãããŸãã
-å§ä»»ã¬ãã«
äœæã»ãã·ã§ã³ããã»ã¹ã§ LEVEL ãŠãŒã¶ãŒã«é¢ããŠäœãå§ä»»ã§ãããããµãŒããŒã«éç¥ãã
è³æ Œæ å ±ã GSS / kerberosã§äœ¿çšãããŸãã
noneå§ä»»ãèš±å¯ããªãã§ãã ããã
ããªã·ãŒKerberosã§OK-AS-DELEGATEãã©ã°ãèšå®ãããŠããå Žåã«ã®ã¿å§ä»»ããŸã
ã¬ã«ã ããªã·ãŒã®åé¡ã§ãããµãŒãã¹ãã±ããã
åžžã«ç¡æ¡ä»¶ã«ãµãŒããŒã«å§ä»»ãèš±å¯ããŸãã
- ãã€ãžã§ã¹ã
ïŒHTTPïŒHTTPãã€ãžã§ã¹ãèªèšŒãæå¹ã«ããŸãã ããã¯ã
ãã¹ã¯ãŒããã¯ãªã¢ããã¹ãã§ãããã¯ãŒã¯çµç±ã§éä¿¡ãããã®ãé²ããŸãã ãããã§äœ¿çšãã
éåžžãšã®çµã¿åãã -uã - ãŠãŒã¶ãŒ ãŠãŒã¶ãŒåãšãã¹ã¯ãŒããèšå®ãããªãã·ã§ã³ã èŠã
ãŸã --ntlm, - äº€æž ãš --anyauth é¢é£ãããªãã·ã§ã³ã«ã€ããŠã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã®ã¿ã䜿çšãããŸãã
--disable-eprt
ïŒFTPïŒã¢ã¯ãã£ãã«ãããšãã«EPRTããã³LPRTã³ãã³ãã®äœ¿çšãç¡å¹ã«ããããã«curlã«æ瀺ããŸã
FTP転éã Curlã¯éåžžãåžžã«æåã«EPRTã䜿çšãã次ã«LPRTã䜿çšããããšããŸãã
PORTã䜿çšããåã«ããã ããã®ãªãã·ã§ã³ã䜿çšãããšãããã«PORTã䜿çšãããŸãã EPRTããã³LPRT
ã¯å ã®FTPãããã³ã«ã®æ¡åŒµã§ããããã¹ãŠã®ãµãŒããŒã§æ©èœãããšã¯éããŸãããã
åŸæ¥ã®PORTã³ãã³ããããåªããæ¹æ³ã§ããå€ãã®æ©èœãæå¹ã«ããŸãã
--eprt EPRTãå床æ瀺çã«æå¹ã«ããããã«äœ¿çšã§ããŸãã ---eprt ãªã ã®ãšã€ãªã¢ã¹ã§ã
--disable-eprt.
EPRTãç¡å¹ã«ãããšãã¢ã¯ãã£ããªåäœã®ã¿ãå€æŽãããŸãã ããã·ãã«åãæ¿ãããå Žå
䜿çšããå¿ èŠã®ãªãã¢ãŒã -NSã --ftp ããŒã ãŸãã¯ããã匷å¶ãã --ftp-pasv.
--ç¡å¹-epsv
ïŒFTPïŒããã·ãFTPãå®è¡ãããšãã«EPSVã³ãã³ãã®äœ¿çšãç¡å¹ã«ããããã«curlã«æ瀺ããŸã
転éããŸãã Curlã¯éåžžãPASVã®åã«åžžã«æåã«EPSVã䜿çšããããšããŸããã
ãã®ãªãã·ã§ã³ã䜿çšãããšãEPSVã®äœ¿çšã¯è©Šè¡ãããŸããã
--epsv EPSVãå床æ瀺çã«æå¹ã«ããããã«äœ¿çšã§ããŸãã --no-epsv ã®ãšã€ãªã¢ã¹ã§ã
--ç¡å¹-epsv.
EPSVãç¡å¹ã«ãããšãååçåäœã®ã¿ãå€æŽãããŸãã ã¢ã¯ãã£ãã«åãæ¿ãããå Žå
䜿çšããå¿ èŠã®ããã¢ãŒã -NSã --ftp ããŒã.
--dns-interface
curlã«éä¿¡DNSèŠæ±ãéä¿¡ããããã«æ瀺ããŸãã ãã®ãªãã·ã§ã³ã¯
ã«å¯Ÿå¿ãã - ã€ã³ã¿ãŒãã§ãŒã¹ ïŒDNSã«ã¯åœ±é¿ããŸããïŒã æäŸãããæååã¯
ã€ã³ã¿ãŒãã§ã€ã¹åïŒã¢ãã¬ã¹ã§ã¯ãããŸããïŒã
ãã®ãªãã·ã§ã³ã§ã¯ãlibcurlããµããŒããããªãŸã«ããŒããã¯ãšã³ãã§ãã«ããããŠããå¿ èŠããããŸã
ãã®æäœã c-aresããã¯ãšã³ãã¯ãã®ãããªå¯äžã®ãã®ã§ãã ïŒ7.33.0ã§è¿œå ïŒ
--dns-ipv4-addr
ã«ãã€ã³ãããããã«curlã«æ瀺ããŸãIPv4 DNSèŠæ±ãè¡ããšããDNSã
ãªã¯ãšã¹ãã¯ãã®ã¢ãã¬ã¹ããçºä¿¡ãããŸãã åŒæ°ã¯åäžã®IPv4ã¢ãã¬ã¹ã§ããå¿ èŠããããŸãã
ãã®ãªãã·ã§ã³ã§ã¯ãlibcurlããµããŒããããªãŸã«ããŒããã¯ãšã³ãã§ãã«ããããŠããå¿ èŠããããŸã
ãã®æäœã c-aresããã¯ãšã³ãã¯ãã®ãããªå¯äžã®ãã®ã§ãã ïŒ7.33.0ã§è¿œå ïŒ
--dns-ipv6-addr
ã«ãã€ã³ãããããã«curlã«æ瀺ããŸãIPv6 DNSèŠæ±ãè¡ããšããDNSã
ãªã¯ãšã¹ãã¯ãã®ã¢ãã¬ã¹ããçºä¿¡ãããŸãã åŒæ°ã¯åäžã®IPv6ã¢ãã¬ã¹ã§ããå¿ èŠããããŸãã
ãã®ãªãã·ã§ã³ã§ã¯ãlibcurlããµããŒããããªãŸã«ããŒããã¯ãšã³ãã§ãã«ããããŠããå¿ èŠããããŸã
ãã®æäœã c-aresããã¯ãšã³ãã¯ãã®ãããªå¯äžã®ãã®ã§ãã ïŒ7.33.0ã§è¿œå ïŒ
--dns-servers
ã·ã¹ãã ããã©ã«ãã®ä»£ããã«äœ¿çšããDNSãµãŒããŒã®ãªã¹ããèšå®ããŸãã ã®ãªã¹ã
IPã¢ãã¬ã¹ã¯ã³ã³ãã§åºåãå¿ èŠããããŸãã ããŒãçªå·ã¯ãªãã·ã§ã³ã§
ãšããŠäžãããã ïŒ åIPã¢ãã¬ã¹ã®åŸã
ãã®ãªãã·ã§ã³ã§ã¯ãlibcurlããµããŒããããªãŸã«ããŒããã¯ãšã³ãã§ãã«ããããŠããå¿ èŠããããŸã
ãã®æäœã c-aresããã¯ãšã³ãã¯ãã®ãããªå¯äžã®ãã®ã§ãã ïŒ7.33.0ã§è¿œå ïŒ
-eã-referer
ïŒHTTPïŒããªãã¡ã©ãŒããŒãžãæ å ±ãHTTPãµãŒããŒã«éä¿¡ããŸãã ãããå¯èœã§ã
ã§èšå® -NSã - ããã ãã¡ããæã äžç·ã«äœ¿çšããå Žå -Lã - äœçœ® ã®ããšãã§ããŸã
--refererURLã« "; auto"ãè¿œå ããŠãcurlãåã®URLãèªåçã«èšå®ããããã«ããŸã
LocationïŒããããŒã®åŸã«ç¶ãå Žåã ã; autoãæååã¯ã次ã®å Žåã§ãåç¬ã§äœ¿çšã§ããŸãã
æåã®--refererã¯èšå®ããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Eã-cert
ïŒSSLïŒãã¡ã€ã«ãååŸãããšãã«æå®ãããã¯ã©ã€ã¢ã³ã蚌ææžãã¡ã€ã«ã䜿çšããããã«curlã«æ瀺ããŸã
HTTPSãFTPSããŸãã¯å¥ã®SSLããŒã¹ã®ãããã³ã«ã䜿çšããŸãã 蚌ææžã¯PKCSïŒ12ã«å«ãŸããŠããå¿ èŠããããŸã
Secure Transportã䜿çšããŠããå Žåã¯ãã©ãŒãããããã®ä»ã®ãšã³ãžã³ã䜿çšããŠããå Žåã¯PEMãã©ãŒãããã ã®å Žå
ãªãã·ã§ã³ã®ãã¹ã¯ãŒãã¯æå®ãããŠããŸããã端æ«ã§ç §äŒãããŸãã ããŒã
ãã®ãªãã·ã§ã³ã¯ãç§å¯éµã§ããã蚌ææžããã¡ã€ã«ãš
ã¯ã©ã€ã¢ã³ã蚌ææžãé£çµãããŸããïŒ èŠã --蚌ææž ãš - éµ ããããæå®ããã«ã¯
ç¬ç«ããŠã
curlãNSSSSLã©ã€ãã©ãªã«å¯ŸããŠæ§ç¯ãããŠããå Žåããã®ãªãã·ã§ã³ã¯curlã«
ã«ãã£ãŠå®çŸ©ãããNSSããŒã¿ããŒã¹å ã§äœ¿çšãã蚌ææžã®ããã¯ããŒã
ç°å¢å€æ°SSL_DIRïŒãŸãã¯ããã©ã«ã㧠/ etc / pki / nssdbïŒã NSS PEM PKCSïŒ11ã®å Žå
ã¢ãžã¥ãŒã«ïŒlibnsspem.soïŒã䜿çšå¯èœã«ãªããšãPEMãã¡ã€ã«ãããŒãã§ããŸãã 䜿çšãããå Žå
çŸåšã®ãã£ã¬ã¯ããªã®ãã¡ã€ã«ã®åã«ã./ããã¬ãã£ãã¯ã¹ãä»ããŠãã ããã
ããã¯ããŒã ãšã®æ··åãé¿ããŠãã ããã ããã¯ããŒã ã«ãïŒããå«ãŸããŠããå Žåã¯ã
ãã¹ã¯ãŒãåºåãæåãšããŠèªèãããªãããã«ãåã«ã\ããä»ããŸãã ã®å Žå
ããã¯ããŒã ã«ã\ããå«ãŸããŠãããããèªèãããªãããã«ã\\ããšããŠãšã¹ã±ãŒãããå¿ èŠããããŸã
ãšã¹ã±ãŒãæåãšããŠã
ïŒiOSããã³Mac OS Xã®ã¿ïŒcurlãSecure Transportã«å¯ŸããŠæ§ç¯ãããŠããå Žåã
蚌ææžæååã¯ã蚌ææž/ç§å¯éµã®ååã«ããããšãã§ããŸãã
ã·ã¹ãã ãŸãã¯ãŠãŒã¶ãŒã®ããŒãã§ãŒã³ããŸãã¯PKCSïŒ12ã§ãšã³ã³ãŒãããã蚌ææžãšãã©ã€ããŒããžã®ãã¹
éµã çŸåšã®ãã£ã¬ã¯ããªã®ãã¡ã€ã«ã䜿çšããå Žåã¯ããã®åã«
ããã¯ããŒã ãšã®æ··åãé¿ããããã«ããã/ããã¬ãã£ãã¯ã¹ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
- ãšã³ãžã³
æå·åæäœã«äœ¿çšããOpenSSLæå·åãšã³ãžã³ãéžæããŸãã ã€ãããŸã - ãšã³ãžã³ ãªã¹ã ããž
ãã«ãæã«ãµããŒãããããšã³ãžã³ã®ãªã¹ããå°å·ããŸãã ãã¹ãŠïŒãŸãã¯ãªãïŒã§ã¯ãªãããšã«æ³šæããŠãã ãã
ãšã³ãžã³ã¯å®è¡æã«å©çšã§ããå ŽåããããŸãã
- ç°å¢
ïŒRISC OSã®ã¿ïŒååã䜿çšããŠãç°å¢å€æ°ã®ç¯å²ãèšå®ããŸãã -w ãªãã·ã§ã³
ããµããŒãããcurlãå®è¡ããåŸã«æçšãªæ å ±ãç°¡åã«æœåºã§ããããã«ããŸãã
--egd-file
ïŒSSLïŒEntropy GatheringDaemonãœã±ãããžã®ãã¹åãæå®ããŸãã ãœã±ããã¯
SSLæ¥ç¶çšã®ã©ã³ãã ãšã³ãžã³ãã·ãŒãããããã«äœ¿çšãããŸãã ãåç §ããŠãã ãã -ã©ã³ãã ãã¡ã€ã«
ãªãã·ã§ã³ãéžæããŸãã
--expect100-ã¿ã€ã ã¢ãŠã
ïŒHTTPïŒcurlã100ãåŸ æ©ã§ããæ倧æéïŒç§åäœïŒ-ç¶è¡
curlãExpectsïŒ100ãçºè¡ãããšãã®å¿ç-ãªã¯ãšã¹ãã®ããããŒãç¶è¡ããŸãã ããã©ã«ãã§ã¯
ã«ãŒã«ã¯XNUMXç§åŸ ã¡ãŸãã ãã®ãªãã·ã§ã³ã¯XNUMXé²å€ãåãå ¥ããŸãïŒ ã«ãŒã«ãæ¢ãŸã£ãã
åŸ æ©äžãå¿çãåä¿¡ãããã®ããã«ç¶è¡ããŸãã
ïŒ7.47.0ã§è¿œå ïŒ
--cert-type
ïŒSSLïŒæäŸããã蚌ææžãã©ã®èšŒææžã¿ã€ãã§ããããcurlã«éç¥ããŸããPEMãDERãããã³
ENGã¯èªèãããã¿ã€ãã§ãã æå®ããªãå ŽåãPEMãæ³å®ãããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--cacert
ïŒSSLïŒæå®ããã蚌ææžãã¡ã€ã«ã䜿çšããŠãã¢ãæ€èšŒããããã«curlã«æ瀺ããŸãã ãã¡ã€ã«
è€æ°ã®CA蚌ææžãå«ãŸããå ŽåããããŸãã 蚌ææžã¯PEM圢åŒã§ããå¿ èŠããããŸãã
éåžžãcurlã¯ããã«ããã©ã«ãã®ãã¡ã€ã«ã䜿çšããããã«æ§ç¯ãããŠããããããã®ãªãã·ã§ã³ã¯éåžž
ãã®ããã©ã«ããã¡ã€ã«ãå€æŽããããã«äœ¿çšãããŸãã
curlã¯ããCURL_CA_BUNDLEããšããååã®ç°å¢å€æ°ãèšå®ãããŠããå Žåããããèªèãã
æå®ããããã¹ãCA蚌ææžãã³ãã«ãžã®ãã¹ãšããŠäœ¿çšããŸãã ãã®ãªãã·ã§ã³ã¯ãããäžæžãããŸã
å€æ°ã«ä¿åããŸãïŒ
Windowsçã®curlã¯ã次ã®ååã®CA蚌ææžãã¡ã€ã«ãèªåçã«æ€çŽ¢ããŸãã
ÂŽcurl-ca-bundle.crtÂŽãcurl.exeãšåããã£ã¬ã¯ããªããŸãã¯Current
äœæ¥ãã£ã¬ã¯ããªããŸãã¯PATHã«æ²¿ã£ãä»»æã®ãã©ã«ãã
curlãNSSSSLã©ã€ãã©ãªã«å¯ŸããŠæ§ç¯ãããŠããå ŽåãNSS PEM PKCSïŒ11ã¢ãžã¥ãŒã«
ãã®ãªãã·ã§ã³ãæ£ããæ©èœããã«ã¯ãïŒlibnsspem.soïŒã䜿çšå¯èœã§ããå¿ èŠããããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--capath
ïŒSSLïŒæå®ããã蚌ææžãã£ã¬ã¯ããªã䜿çšããŠãã¢ãæ€èšŒããããã«curlã«æ瀺ããŸãã
ãïŒãã§åºåãããšã«ãããè€æ°ã®ãã¹ãæäŸã§ããŸãïŒäŸïŒ
"path1ïŒpath2ïŒpath3"ïŒã 蚌ææžã¯PEM圢åŒã§ããå¿ èŠããããcurlãæ§ç¯ãããŠããå Žå
OpenSSLã«å¯ŸããŠããã£ã¬ã¯ããªã¯c_rehashãŠãŒãã£ãªãã£ã䜿çšããŠåŠçãããŠããå¿ èŠããããŸã
OpenSSLã§æäŸãããŸãã 䜿çšãã --ã«ãã¹ OpenSSLãå©çšããcurlã§SSLãäœæã§ããããã«ããããšãã§ããŸã-
䜿çšãããããã¯ããã«å¹ççã«æ¥ç¶ --cacert ãã --cacert ãã¡ã€ã«ã«å«ãŸããŠããŸã
å€ãã®CA蚌ææžã
ãã®ãªãã·ã§ã³ãèšå®ãããŠããå Žåãããã©ã«ãã®capathå€ã¯ç¡èŠããã䜿çšãããŠããå Žå
æ°åãæåŸã®ãã®ã䜿çšãããŸãã
--pinnedpubkey
ïŒSSLïŒæå®ãããå ¬ééµãã¡ã€ã«ïŒãŸãã¯ããã·ã¥ïŒã䜿çšããŠæ€èšŒããããã«curlã«æ瀺ããŸã
ãã¢ã ããã¯ãPEMãŸãã¯DERã®åäžã®å ¬ééµãå«ããã¡ã€ã«ãžã®ãã¹ã«ããããšãã§ããŸã
圢åŒããŸãã¯ãsha64 //ããåã«ä»ããbase256ã§ãšã³ã³ãŒããããsha256ããã·ã¥ã®æ°
ÂŽ;ÂŽã§åºåãããŠããŸã
TLSãŸãã¯SSLæ¥ç¶ãããŽã·ãšãŒããããšãããµãŒããŒã¯ããã瀺ã蚌ææžãéä¿¡ããŸã
ãã®ã¢ã€ãã³ãã£ãã£ã å ¬ééµã¯ãã®èšŒææžããæœåºãããããã§ãªãå Žåã¯æœåºãããŸã
ãã®ãªãã·ã§ã³ã«æäŸãããå ¬ééµãšå®å šã«äžèŽãããšãcurlã¯äžæ¢ããŸã
ããŒã¿ãéåä¿¡ããåã®æ¥ç¶ã
OpenSSLãGnuTLSãGSKitçšã«7.39.0ã§è¿œå ãããŸããã NSSããã³
wolfSSL / CyaSSLã OpenSSLãGnuTLSãNSSãããã³256ã§è¿œå ãããsha7.44.0ãµããŒã
wolfSSL / CyaSSLã ãã®ä»ã®SSLããã¯ãšã³ãã¯ãµããŒããããŠããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--蚌ææžã¹ããŒã¿ã¹
ïŒSSLïŒcurlã«ããµãŒããŒèšŒææžã®ã¹ããŒã¿ã¹ã確èªããããã«æ瀺ããŸãã
蚌ææžã¹ããŒã¿ã¹èŠæ±ïŒå¥åãOCSPã¹ããŒããªã³ã°ïŒTLSæ¡åŒµã
ãã®ãªãã·ã§ã³ãæå¹ã«ãªã£ãŠããŠããµãŒããŒãç¡å¹ãªïŒæéåããªã©ã®ïŒå¿çãéä¿¡ããå Žåã
å¿çããµãŒããŒèšŒææžãåãæ¶ãããããšã瀺åããŠããå ŽåããŸãã¯
å¿çããŸã£ããåä¿¡ãããªãå Žåãæ€èšŒã¯å€±æããŸãã
ããã¯çŸåšãOpenSSLãGnuTLSãããã³NSSããã¯ãšã³ãã§ã®ã¿å®è£ ãããŠããŸãã ïŒè¿œå ãã
7.41.0ã§ïŒ
--false-éå§
ïŒSSLïŒTLSãã³ãã·ã§ã€ã¯äžã«äžæ£ã¹ã¿ãŒãã䜿çšããããã«curlã«æ瀺ããŸãã äžæ£ã¹ã¿ãŒãã¯ã¢ãŒãã§ã
TLSã¯ã©ã€ã¢ã³ããæ€èšŒããåã«ã¢ããªã±ãŒã·ã§ã³ããŒã¿ã®éä¿¡ãéå§ããå Žæ
ãµãŒããŒã®çµäºã¡ãã»ãŒãžãããã«ããããã«å®è¡æã®ã©ãŠã³ãããªãããç¯çŽã§ããŸãã
ãã³ãã·ã§ãŒã¯ã
ããã¯çŸåšãNSSããã³ã»ãã¥ã¢ãã©ã³ã¹ããŒãïŒiOS7.0ãŸãã¯
ãã以éããŸãã¯OS X 10.9以éïŒããã¯ãšã³ãã ïŒ7.42.0ã§è¿œå ïŒ
-fã-fail
ïŒHTTPïŒãµãŒããŒãšã©ãŒã§ãµã€ã¬ã³ãã«å€±æããŸãïŒåºåã¯ãŸã£ãããããŸããïŒã ããã¯äž»ã«
ã¹ã¯ãªãããªã©ãæå¹ã«ããŠã倱æããè©Šè¡ãããé©åã«åŠçã§ããããã«ããŸãã éåžžã®å Žå
HTTPãµãŒããŒã¯ããã¥ã¡ã³ãã®é ä¿¡ã«å€±æãããã®æšã瀺ãHTMLããã¥ã¡ã³ããè¿ããŸãã
ïŒå€ãã®å Žåãçç±ãªã©ã«ã€ããŠã説æããŸãïŒã ãã®ãã©ã°ã¯ã«ãŒã«ãé²ããŸã
ãããåºåããŠãšã©ãŒ22ãè¿ããŸãã
ãã®æ¹æ³ã¯ãã§ã€ã«ã»ãŒãã§ã¯ãªããå¿çã倱æããå ŽåããããŸã
ç¹ã«èªèšŒãå«ãŸããå Žåãã³ãŒãã¯ããæããŸãïŒå¿çã³ãŒã
401ãš407ïŒ
-Fã-form
ïŒHTTPïŒããã«ãããcurlã¯ããŠãŒã¶ãŒããæŒããå ¥åæžã¿ãã©ãŒã ããšãã¥ã¬ãŒãã§ããŸãã
éä¿¡ãã¿ã³ã ããã«ãããcurlã¯Content-Type multipart / form-ã䜿çšããŠããŒã¿ãPOSTããŸãã
RFC 2388ã«æºæ ããããŒã¿ãããã«ããããã€ããªãã¡ã€ã«ãªã©ã®ã¢ããããŒããå¯èœã«ãªããŸãã
'content'éšåããã¡ã€ã«ã«ããå Žåã¯ããã¡ã€ã«åã®åã«@èšå·ãä»ããŸãã ãã åŸãããã«
ãã¡ã€ã«ã®ã³ã³ãã³ãéšåã§ããã¡ã€ã«åã®åã«èšå·<ãä»ããŸãã The
@ãš<ã®éãã¯ã@ã«ãã£ãŠãã¡ã€ã«ãæçš¿ã«æ·»ä»ãããããšã§ãã
ãã¡ã€ã«ã®ã¢ããããŒãã<ã¯ããã¹ããã£ãŒã«ããäœæãããã®å 容ãååŸããŸã
ãã¡ã€ã«ã®ããã¹ããã£ãŒã«ãã
ããšãã°ããã¹ã¯ãŒããã¡ã€ã«ããµãŒããŒã«éä¿¡ããã«ã¯ããpasswordãã¯æ¬¡ã®ååã§ãã
ãã©ãŒã ãã£ãŒã«ã /etc/passwd å ¥åã«ãªããŸãïŒ
curl -Fãã¹ã¯ãŒã= @/etc/passwd www.mypasswords.com
ãã¡ã€ã«ã§ã¯ãªãstdinããã³ã³ãã³ããèªã¿åãã«ã¯ããã¡ã€ã«åãšããŠ-ã䜿çšããŸãã ããã¯
@ãš<ã®äž¡æ¹ã®æ§é ã æ®å¿µãªããããã¡ã€ã«ã®èªã¿åãã¯ãµããŒããããŠããŸããã
転éãéå§ããåã«ãã«ãµã€ãºãå¿ èŠãªãããååä»ããã€ããªã©ã
'type ='ã䜿çšããŠã䜿çšããContent-Typeãcurlã«æ瀺ããããšãã§ããŸãã
ã«äŒŒãŠããïŒ
curl -F "[ã¡ãŒã«ä¿è·];type=text/html" url.com
or
curl -F "name = daniel; type = text / foo" url.com
èšå®ããããšã«ããããã¡ã€ã«ã¢ããããŒãéšåã®ååãã£ãŒã«ããæ瀺çã«å€æŽããããšãã§ããŸã
filename =ã次ã®ããã«ïŒ
curl -F "file = @ localfile; filename = nameinpost" url.com
ãã¡ã€ã«å/ãã¹ã«ããããŸãã¯ã;ããå«ãŸããŠããå Žåã¯ã次ã®ããã«äºéåŒçšç¬Šã§å²ãå¿ èŠããããŸãã
curl -F "file = @ \" localfile \ "; filename = \" nameinpost \ "" url.com
or
curl -F'file = @ "localfile"; filename = "nameinpost" 'url.com
ãã¡ã€ã«å/ãã¹ãäºéåŒçšç¬Šã§å²ãŸããŠããå Žåã¯ãä»»æã®äºéåŒçšç¬ŠãŸãã¯
ãã¡ã€ã«åå ã®åèšå·ã¯ãåèšå·ã§ãšã¹ã±ãŒãããå¿ èŠããããŸãã
ããã¥ã¢ã«ã®ãã®ä»ã®äŸãšè©³çŽ°ãåç §ããŠãã ããã
ãã®ãªãã·ã§ã³ã¯è€æ°å䜿çšã§ããŸãã
--ftp-account [ããŒã¿]
ïŒFTPïŒãŠãŒã¶ãŒåãšãã¹ã¯ãŒãã®åŸã«ââFTPãµãŒããŒããã¢ã«ãŠã³ãããŒã¿ããèŠæ±ããå Žå
æäŸãããŠããå Žåããã®ããŒã¿ã¯ACCTã³ãã³ãã䜿çšããŠéä¿¡ãããŸãã ïŒ7.13.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--ftp-alternative-to-user
ïŒFTPïŒUSERã³ãã³ããšPASSã³ãã³ãã«ããèªèšŒã«å€±æããå Žåã¯ããã®ã³ãã³ããéä¿¡ããŠãã ããã
ã¯ã©ã€ã¢ã³ãã䜿çšããŠFTPSçµç±ã§Tumbleweedã®ã»ãã¥ã¢ãã©ã³ã¹ããŒããµãŒããŒã«æ¥ç¶ããå Žå
蚌ææžããSITE AUTHãã䜿çšãããšããµãŒããŒã«ãŠãŒã¶ãŒåãååŸããããã«æ瀺ãããŸã
蚌ææžã ïŒ7.15.5ã§è¿œå ïŒ
--ftp-create-dirs
ïŒFTP / SFTPïŒFTPãŸãã¯SFTPã®URL /æäœãçŸåšäœ¿çšããŠããªããã¹ã䜿çšããå Žå
ãµãŒããŒäžã«ååšããå Žåãcurlã®æšæºçãªåäœã¯å€±æããŸãã ãã®ãªãã·ã§ã³ã䜿çšãããšã
代ããã«ãcurlã¯æ¬ èœããŠãããã£ã¬ã¯ããªãäœæããããšããŸãã
--ftp-method [ã¡ãœãã]
ïŒFTPïŒFTPïŒSïŒãµãŒããŒäžã®ãã¡ã€ã«ã«å°éããããã«curlã䜿çšããæ¹æ³ãå¶åŸ¡ããŸãã The
ã¡ãœããåŒæ°ã¯ã次ã®ããããã®éžæè¢ã§ããå¿ èŠããããŸãã
ãã«ãã¯ã©ãŠã
curlã¯ãæå®ãããURLã®ãã¹éšåããšã«åäžã®CWDæäœãå®è¡ããŸãã ã«ãšã£ãŠ
æ·±ãéå±€ããã¯éåžžã«å€ãã®ã³ãã³ããæå³ããŸãã ããã¯RFC1738ããããèšãæ¹æ³ã§ã
è¡ãããã¹ãã§ãã ããã¯ããã©ã«ãã§ãããæãé ãåäœã§ãã
nocwdcurlã¯CWDããŸã£ããè¡ããŸããã curlã¯ãSIZEãRETRãSTORãªã©ãå®è¡ãããã«ãæäŸããŸã
ããããã¹ãŠã®ã³ãã³ãã®ãµãŒããŒãžã®ãã¹ã ãããæéã®åäœã§ãã
ã·ã³ã°ã«cwd
curlã¯ãå®å šãªã¿ãŒã²ãããã£ã¬ã¯ããªã§XNUMXã€ã®CWDãå®è¡ããŠããã
ãã¡ã€ã«ã¯ãéåžžãïŒmulticwdã®å Žåã®ããã«ïŒã ããã¯ããæšæºçã§ã
'nocwd'ããæºæ ããŠããŸããã 'multicwd'ã®å®å šãªããã«ãã£ã¯ãããŸããã
ïŒ7.15.1ã§è¿œå ïŒ
--ftp-pasv
ïŒFTPïŒããŒã¿æ¥ç¶ã«ã¯ããã·ãã¢ãŒãã䜿çšããŸãã ããã·ãã¯å éšããã©ã«ãã§ã
åäœããŸããããã®ãªãã·ã§ã³ã䜿çšãããšã以åã®åäœãäžæžãã§ããŸã -P / -ftp-port
ãªãã·ã§ã³ã ïŒ7.11.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã®ã¿ã䜿çšãããŸãã å ã«æ»ã
匷å¶ãããããã·ãã¯å®éã«ã¯å®è¡ã§ããŸãããã代ããã«æ£ãããã®ã匷å¶ããå¿ èŠããããŸã
-NSã --ftp ããŒã åã³ã
ããã·ãã¢ãŒããšã¯ãcurlãæåã«EPSVã³ãã³ããè©Šè¡ãã次ã«PASVãè©Šè¡ããããšãæå³ããŸãã
--ç¡å¹-epsv 䜿çšãããŠããã
--ftp-skip-pasv-ip
ïŒFTPïŒãµãŒããŒãå¿çã§ææ¡ããIPã¢ãã¬ã¹ã䜿çšããªãããã«curlã«æ瀺ããŸã
curlãããŒã¿æ¥ç¶ã«æ¥ç¶ãããšãã®curlã®PASVã³ãã³ãã 代ããã«ãã«ãŒã«ãå-
å¶åŸ¡æ¥ç¶ã«ãã§ã«äœ¿çšããŠããã®ãšåãIPã¢ãã¬ã¹ã䜿çšããŸãã ïŒã«è¿œå
7.14.2ïŒ
ãã®ãªãã·ã§ã³ã¯ãPASVã®ä»£ããã«PORTãEPRTããŸãã¯EPSVã䜿çšãããŠããå Žåã¯å¹æããããŸããã
--ftp-pret
ïŒFTPïŒPASVïŒããã³EPSVïŒã®åã«PRETã³ãã³ããéä¿¡ããããã«curlã«æ瀺ããŸãã ç¹å®ã®FTPãµãŒããŒã
äž»ã«drftpdã§ããããã£ã¬ã¯ããªãªã¹ããšåæ§ã«ãã®éæšæºã³ãã³ããå¿ èŠã§ã
ã¢ããããŠPASVã¢ãŒãã§ããŠã³ããŒãããŸãã ïŒ7.20.xã§è¿œå ïŒ
--ftp-ssl-ccc
ïŒFTPïŒCCCã䜿çšïŒã³ãã³ããã£ãã«ã®ã¯ãªã¢ïŒåŸã«SSL / TLSã¬ã€ã€ãŒãã·ã£ããããŠã³ããŸã
èªèšŒã æ®ãã®å¶åŸ¡ãã£ãã«éä¿¡ã¯æå·åãããŸããã
ããã«ãããNATã«ãŒã¿ãŒã¯FTPãã©ã³ã¶ã¯ã·ã§ã³ã远跡ã§ããŸãã ããã©ã«ãã®ã¢ãŒãã¯ããã·ãã§ãã
èŠã --ftp-ssl-ccc-mode ä»ã®ã¢ãŒãã®å Žåã ïŒ7.16.1ã§è¿œå ïŒ
--ftp-ssl-ccc-mode [ã¢ã¯ãã£ã/ããã·ã]
ïŒFTPïŒUse CCCïŒClear Command ChannelïŒCCCã¢ãŒããèšå®ããŸãã ããã·ãã¢ãŒãã¯ããŸãã
ã·ã£ããããŠã³ãéå§ããŸããã代ããã«ãµãŒããŒãã·ã£ããããŠã³ãå®è¡ããã®ãåŸ ã¡ãå¿çããŸãã
ãµãŒããŒããã®ã·ã£ããããŠã³ã«ã ã¢ã¯ãã£ãã¢ãŒãã¯ã·ã£ããããŠã³ãéå§ããåŸ æ©ããŸã
ãµãŒããŒããã®å¿çã ïŒ7.16.2ã§è¿œå ïŒ
--ftp-ssl-control
ïŒFTPïŒFTPãã°ã€ã³ã«SSL / TLSãèŠæ±ãã転éãã¯ãªã¢ããŸãã å®å šãå¯èœã«ããŸã
èªèšŒã§ãããå¹çã®ããã«æå·åãããŠããªãããŒã¿è»¢éã 倱æããŸã
ãµãŒããŒãSSL / TLSããµããŒãããŠããªãå Žåã¯è»¢éããŸãã ïŒ7.16.0ã§è¿œå ïŒããã§ã
䜿çšãããŸãããå°æ¥ã®ããŒãžã§ã³ã§åé€ãããäºå®ã§ãã
--form-string
ïŒHTTPïŒã«äŒŒãŠããŸã - 圢 ãã ããæå®ããããã©ã¡ãŒã¿ã®å€ã®æååã¯æ¬¡ã®ãšããã§ãã
æåéã䜿çšãããŸãã å é ã®ã@ãããã³ã<ãæåãããã³ã; type =ãæåå
å€ã«ã¯ç¹å¥ãªæå³ã¯ãããŸããã ãããåªå ããŠäœ¿çšãã - 圢 ããå Žå
æååå€ã誀ã£ãŠã@ããŸãã¯ã<ãæ©èœãããªã¬ãŒããå¯èœæ§
of - 圢.
-gã-globoff
ãã®ãªãã·ã§ã³ã¯ããURLã°ããã³ã°ããŒãµãŒãããªãã«ããŸãã ãã®ãªãã·ã§ã³ãèšå®ãããšã
{} []ã®æåãå«ãURLãæå®ã§ããŸãã
ã«ãŒã«èªäœã«ãã£ãŠè§£éãããŸãã ãããã®æåã¯éåžžã®æå¹ãªURLã§ã¯ãªãããšã«æ³šæããŠãã ãã
ã³ã³ãã³ãã§ãããURIæšæºã«åŸã£ãŠãšã³ã³ãŒãããå¿ èŠããããŸãã
-Gã-get
ãã®ãªãã·ã§ã³ã䜿çšãããšãã§æå®ããããã¹ãŠã®ããŒã¿ãäœæãããŸã -NSã - ããŒã¿, --ããŒã¿ãã€ããª
or --data-urlencode POSTãªã¯ãšã¹ãã®ä»£ããã«HTTPGETãªã¯ãšã¹ãã§äœ¿çšãããŸã
ãã以å€ã®å Žåã¯äœ¿çšãããŸãã ããŒã¿ã¯ãïŒãã§URLã«è¿œå ãããŸã
ã»ãã¬ãŒã¿ã
-Iãšçµã¿åãããŠäœ¿çšââãããšãPOSTããŒã¿ã代ããã«URLã«è¿œå ãããŸã
HEADãªã¯ãšã¹ãã§ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã®ã¿ã䜿çšãããŸãã ããã®èš³ã¯
GETãå ã«æ»ãããšã¯æå³ããããŸãããã代ããã«åŒ·å¶ããå¿ èŠããããŸã
ããªãã奜ã代æ¿æ¹æ³ã
-Hã-header
ïŒHTTPïŒãµãŒããŒã«HTTPãéä¿¡ãããšãã«ãªã¯ãšã¹ãã«å«ããè¿œå ã®ããããŒã å
è¿œå ã®ããããŒãããã€ã§ãæå®ã§ããŸãã ã«ã¹ã¿ã ãè¿œå ããå¿ èŠãããå Žåã¯æ³šæããŠãã ãã
curlã䜿çšããå éšããããŒã®XNUMXã€ãšåãååã®ããããŒã
å éšããããŒã®ä»£ããã«ãå€éšã§èšå®ãããããããŒã䜿çšãããŸãã ããã«ããã
ã«ãŒã«ãéåžžè¡ããããããã«ããªãããŒãªãã®ãäœããŸãã 亀æããªãã§ãã ãã
äœãããŠããã®ããå®å šã«ç解ããããšãªããå éšã§ããããŒãèšå®ããŸãã ãåé€ããŸã
å³åŽã«ã³ã³ãã³ãã®ãªã眮æãäžããããšã«ããå éšããããŒ
ã³ãã³ã次ã®ããã«ïŒ-H "HostïŒ"ã å€ãªãã§ã«ã¹ã¿ã ããããŒãéä¿¡ãããšã
ããããŒã¯ã-H "X-Custom-Header;"ãªã©ã®ã»ãã³ãã³ã§çµäºããå¿ èŠããããŸãã éä¿¡ãã
ãX-Custom-HeaderïŒãã
curlã¯ãè¿œå /眮æããåããããŒãé©åãªæ«å°Ÿã§éä¿¡ãããããšã確èªããŸã-
of-lineããŒã«ãŒããããã£ãŠã ããããŒã³ã³ãã³ãã®äžéšãšããŠãããè¿œå ããŸãã
æ¹è¡ããã£ãªããžãªã¿ãŒã³ãè¿œå ããªãã§ãã ããããããã¯ããªãã®ããã«ç©äºãå°ç¡ãã«ããã ãã§ãã
åç §ããŠãã ãã -NSã - ãŠãŒã¶ãŒãšãŒãžã§ã³ã ãš -eã -ãªãã¡ã©ãŒ ãªãã·ã§ã³ã
7.37.0以éã --ãããã·ããã㌠ã察象ãšããã«ã¹ã¿ã ããããŒãéä¿¡ããã«ã¯
ãããã·ã
äŸïŒ
ïŒcurl -H "X-First-NameïŒJoe" http://192.168.0.1/
èŠåïŒãã®ãªãã·ã§ã³ã§èšå®ãããããããŒã¯ããã¹ãŠã®ãªã¯ãšã¹ãã§èšå®ãããŸã-åŸã
ãšèšããããšãã®ããã«ããªãã€ã¬ã¯ããç¶ããŸã -Lã - äœçœ®ã ããã¯ã
ããããŒã¯å ã®ãã¹ã以å€ã®ãã¹ãã«éä¿¡ããããããæ©å¯æ§ã®é«ãããããŒ
次ã®ãªãã€ã¬ã¯ããšçµã¿åãããŠæ³šæããŠäœ¿çšããå¿ èŠããããŸãã
ãã®ãªãã·ã§ã³ã¯ãè€æ°ã®ããããŒãè¿œå /眮æ/åé€ããããã«è€æ°å䜿çšã§ããŸãã
--hostpubmd5
ïŒSCP / SFTPïŒ32æ¡ã®XNUMXé²æ°ãå«ãæååãæž¡ããŸãã æååã¯
ãªã¢ãŒããã¹ãã®å ¬ééµã®128ãããMD5ãã§ãã¯ãµã ãcurlã¯æåŠããŸã
md5sumsãäžèŽããªãéãããã¹ããšã®æ¥ç¶ã ïŒ7.17.1ã§è¿œå ïŒ
--ignore-ã³ã³ãã³ãã®é·ã
HTTPã®å ŽåãContent-LengthããããŒãç¡èŠããŸãã ããã¯ç¹ã«ãµãŒããŒã«åœ¹ç«ã¡ãŸã
Apache 1.xãå®è¡ãããšããã倧ããªãã¡ã€ã«ã«å¯ŸããŠèª€ã£ãContent-Lengthãå ±åãããŸã
2ã®ã¬ãã€ãããã
FTPã®å ŽåïŒ7.46.0以éïŒãRETRã³ãã³ããã¹ãããããŠãåã®ãµã€ãºãèšç®ããŸã
ãã¡ã€ã«ã®ããŠã³ããŒãã
-iã-include
ïŒHTTPïŒåºåã«HTTPããããŒãå«ããŸãã HTTPããããŒã«ã¯æ¬¡ã®ãããªãã®ãå«ãŸããŸã
ãµãŒããŒåãããã¥ã¡ã³ãã®æ¥ä»ãHTTPããŒãžã§ã³ãªã©...
-ç§ã-é
ïŒHTTP / FTP / FILEïŒHTTPããããŒã®ã¿ããã§ããããŸãïŒ HTTPãµãŒããŒã¯ã³ãã³ãHEADãåããŠããŸã
ããã¯ãããã¥ã¡ã³ãã®ããããŒã®ã¿ãååŸããããã«äœ¿çšãããŸãã FTPãŸãã¯
FILEãã¡ã€ã«ãcurlã¯ããã¡ã€ã«ãµã€ãºãšæçµå€æŽæå»ã®ã¿ã衚瀺ããŸãã
- ã€ã³ã¿ãŒãã§ãŒã¹
æå®ãããã€ã³ã¿ãŒãã§ãŒã¹ã䜿çšããŠæäœãå®è¡ããŸãã ã€ã³ã¿ãŒãã§ã€ã¹åãIPãå ¥åã§ããŸã
ã¢ãã¬ã¹ãŸãã¯ãã¹ãåã äŸã¯æ¬¡ã®ããã«ãªããŸãã
curl --interface eth0ïŒ1 http://www.netscape.com/
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-jã-junk-session-cookies
ïŒHTTPïŒcurlãç¹å®ã®ãã¡ã€ã«ããCookieãèªã¿åãããã«æ瀺ãããå Žåããã®ãªãã·ã§ã³ã¯
ãã¹ãŠã®ãã»ãã·ã§ã³Cookieããç Žæ£ããŸãã ããã¯åºæ¬çã«ã
æ°ããã»ãã·ã§ã³ãéå§ãããŸãã äžè¬çãªãã©ãŠã¶ã¯ã次ã®å Žåã«åžžã«ã»ãã·ã§ã³Cookieãç Žæ£ããŸã
圌ãã¯ééãããŠããŸãã
-Jã-remote-header-name
ïŒHTTPïŒãã®ãªãã·ã§ã³ã¯ã -Oã -ãªã¢ãŒãå ãµãŒããŒæå®ã䜿çšãããªãã·ã§ã³
ã³ã³ãã³ã-URLãããã¡ã€ã«åãæœåºãã代ããã«ããã¡ã€ã«åãç Žæ£ããŸãã
æäŸããããã¡ã€ã«åã®ïŒ -ã·ãŒã±ã³ã¹ãïŒãŸã ïŒãã³ãŒãããè©Šã¿ã¯ãªãã®ã§ãããã¯
ãªãã·ã§ã³ã¯ãäºæ³å€ã®ãã¡ã€ã«åãæäŸããå ŽåããããŸãã
-kã-insecure
ïŒSSLïŒãã®ãªãã·ã§ã³ã«ãããcurlã¯ãå®å šã§ãªããSSLæ¥ç¶ãæ瀺çã«å®è¡ã§ããŸãã
転éããŸãã ãã¹ãŠã®SSLæ¥ç¶ã¯ãCAã䜿çšããŠå®å šã«ããããšããŸã
ããã©ã«ãã§ã€ã³ã¹ããŒã«ããã蚌ææžãã³ãã«ã ããã«ããããã¹ãŠã®æ¥ç¶ãèæ ®ãããŸã
ãå®å šã§ãªããã¯ã -kã -å®å šã§ãªã 䜿çšãããŠããã
詳现ã«ã€ããŠã¯ã次ã®ãªã³ã©ã€ã³ãªãœãŒã¹ãåç §ããŠãã ããã
http://curl.haxx.se/docs/sslcerts.html
-Kã-config
curlåŒæ°ãèªã¿åãæ§æãã¡ã€ã«ãæå®ããŸãã èšå®ãã¡ã€ã«ã¯ããã¹ãã§ã
ã³ãã³ãã©ã€ã³åŒæ°ãèšè¿°ã§ãããã¡ã€ã«ãããã¯ããããã䜿çšããããã®ããã«äœ¿çšãããŸãã
ãããã¯å®éã®ã³ãã³ãã©ã€ã³ã§æžãããŸããã
ãªãã·ã§ã³ãšãã®ãã©ã¡ãŒã¿ãŒã¯ãåãæ§æãã¡ã€ã«è¡ã§æå®ããå¿ èŠããããŸãã
空çœãã³ãã³ããŸãã¯çå·ã§åºåãããŸãã é·ããªãã·ã§ã³åã¯
ãªãã·ã§ã³ã§ãæåã®äºéããã·ã¥ãªãã§æ§æãã¡ã€ã«ã«æå®ããŸããæå®ããå Žåã¯ã
ã³ãã³ãŸãã¯çå·ã¯åºåãæåãšããŠäœ¿çšã§ããŸãã ãªãã·ã§ã³ã
XNUMXã€ãŸãã¯XNUMXã€ã®ããã·ã¥ã§æå®ãããšãã³ãã³ãŸãã¯çå·ãéã«å ¥ããããšã¯ã§ããŸãã
ãªãã·ã§ã³ãšãã®ãã©ã¡ãŒã¿ã
ãã©ã¡ãŒã¿ã«ç©ºçœãå«ããå Žåã¯ããã©ã¡ãŒã¿ãã§å²ãå¿ èŠããããŸã
åŒçšç¬Šã äºéåŒçšç¬Šã§å²ããšã次ã®ãšã¹ã±ãŒãã·ãŒã±ã³ã¹ã䜿çšã§ããŸãïŒ\\ã\ "ã
\ tã\ nã\ rããã³\ vã ä»ã®æåã®åã«ããåèšå·ã¯ç¡èŠãããŸãã æåã®å Žå
æ§æè¡ã®åã¯ãïŒãæåã§ãããè¡ã®æ®ãã®éšåã¯æ¬¡ã®ããã«æ±ãããŸã
ã³ã¡ã³ãã æ§æãã¡ã€ã«ã«ã¯ãç©çââè¡ããšã«XNUMXã€ã®ãªãã·ã§ã³ã®ã¿ãèšè¿°ããŸãã
ãã¡ã€ã«åã-Kã«æå®ãã-configãã-ããšããŠæå®ããŠcurlã«stdinãããã¡ã€ã«ãèªã¿åãããŸãã
èšå®ãã¡ã€ã«ã§URLãæå®ã§ããããã«ããã«ã¯ãURLãæå®ããå¿ èŠãããããšã«æ³šæããŠãã ãã
--url ãªãã·ã§ã³ã§ãããURLãç¬èªã®è¡ã«æžã蟌ãã ãã§ã¯ãããŸããã ããã¯ãã
ããã«äŒŒãŠããå¯èœæ§ããããŸãïŒ
url = "http://curl.haxx.se/docs/"
curlãåŒã³åºããããšãåžžã«ïŒãã ãã -q 䜿çšãããŸãïŒããã©ã«ãã®èšå®ããã§ãã¯ããŸã
ãã¡ã€ã«ããèŠã€ãã£ãå Žåã¯ããã䜿çšããŸãã ããã©ã«ãã®èšå®ãã¡ã€ã«ã¯ã次ã®ããã«ãã§ãã¯ãããŸã
ãã®é åºã§é 眮ããŸãã
1ïŒcurlã¯ãããŒã ãã£ã¬ã¯ããªããèŠã€ããããšããŸããæåã«CURL_HOMEããã§ãã¯ãã次ã«
HOMEç°å¢å€æ°ã ããã倱æãããšãUnixã©ã€ã¯ã§getpwuidïŒïŒã䜿çšããŸã
ã·ã¹ãã ïŒã·ã¹ãã å ã®çŸåšã®ãŠãŒã¶ãŒã«æå®ãããããŒã ãã£ã¬ã¯ããªãè¿ããŸãïŒã ã®äž
Windowsã®å ŽåãAPPDATAå€æ°ããã§ãã¯ããããæåŸã®æ段ãšããŠ
'ïŒ USERPROFILEïŒ \ã¢ããªã±ãŒã·ã§ã³ããŒã¿'ã
2ïŒWindowsã§ã¯ãããŒã ãã£ã¬ã¯ããªã«_curlrcãã¡ã€ã«ããªãå Žåã¯ã次ã®ãã¡ã€ã«ããã§ãã¯ããŸãã
curlå®è¡å¯èœãã¡ã€ã«ãé 眮ãããã®ãšåããã£ã¬ã¯ããªã Unixã©ã€ã¯ãªã·ã¹ãã ã§ã¯ãåçŽã«
決å®ãããããŒã ãã£ã¬ã¯ããªãã.curlrcãããŒãããŠã¿ãŠãã ããã
ïŒ---ãµã³ãã«ãã¡ã€ã«---
ïŒããã¯ã³ã¡ã³ãã§ã
url = "curl.haxx.se"
output = "curlhere.html"
user-agent = "superagent / 1.0"
ïŒãããŠå¥ã®URLãååŸãã
url = "curl.haxx.se/docs/manpage.html"
-O
ãªãã¡ã©ãŒ= "http://nowhereatall.com/"
ïŒ---ãµã³ãã«ãã¡ã€ã«ã®çµãã---
ãã®ãªãã·ã§ã³ã¯ãè€æ°ã®æ§æãã¡ã€ã«ãããŒãããããã«è€æ°å䜿çšã§ããŸãã
--keepalive-time
ãã®ãªãã·ã§ã³ã¯ãéä¿¡ããåã«æ¥ç¶ãã¢ã€ãã«ç¶æ ãç¶æããå¿ èŠãããæéãèšå®ããŸã
ããŒãã¢ã©ã€ããããŒããšåã ã®ããŒãã¢ã©ã€ããããŒãéã®æéã çŸåšã§ã
TCP_KEEPIDLEããã³TCP_KEEPINTVLãœã±ãããæäŸãããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§å¹æç
ãªãã·ã§ã³ïŒLinuxãæè¿ã®AIXãHP-UXãªã©ãæå³ããŸãïŒã ãã®ãªãã·ã§ã³ã¯ã次ã®å Žåã¯å¹æããããŸããã
-ããŒãã¢ã©ã€ããªã 䜿çšãããŠããã ïŒ7.18.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã æå®ãããŠããªãå Žåã
ãªãã·ã§ã³ã®ããã©ã«ãã¯60ç§ã§ãã
- éµ
ïŒSSL / SSHïŒç§å¯éµãã¡ã€ã«åã ããã§ç§å¯éµãæäŸã§ããŸã
å¥ã®ãã¡ã€ã«ã SSHã®å Žåãæå®ãããŠããªãå Žåãcurlã¯æ¬¡ã®åè£ãè©Šè¡ããŸãã
泚æïŒ 'ã/ .ssh / id_rsaãããã/ .ssh / id_dsa'ã' ./id_rsa'ã'./id_dsa 'ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-ããŒã¿ã€ã
ïŒSSLïŒç§å¯éµãã¡ã€ã«ã¿ã€ãã ã¿ã€ããæå®ããŠãã ãã - éµ æäŸãããç§å¯éµã¯ã§ãã
DERãPEMãããã³ENGããµããŒããããŠããŸãã æå®ããªãå ŽåãPEMãæ³å®ãããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--krb
ïŒFTPïŒKerberosèªèšŒãšäœ¿çšãæå¹ã«ããŸãã ã¬ãã«ãå ¥åããå¿ èŠãããã
'clear'ã 'safe'ã 'confidential'ããŸã㯠'private'ã®ããããã«ãªããŸãã ã¬ãã«ã䜿çšããå¿ èŠããããŸã
ããã¯ãããã®XNUMXã€ã§ã¯ãªãã代ããã«ãprivateãã䜿çšãããŸãã
ãã®ãªãã·ã§ã³ã«ã¯ãkerberos4ãµããŒãã§æ§ç¯ãããã©ã€ãã©ãªãå¿ èŠã§ãã ããã¯ããŸããããŸãã
äžè¬ã ã€ãããŸã -Vã - ããŒãžã§ã³ ããªãã®ã«ãŒã«ãããããµããŒãããŠãããã©ããã確èªããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-lã-list-only
ïŒFTPïŒFTPãã£ã¬ã¯ããªãäžèŠ§è¡šç€ºããå Žåããã®ã¹ã€ããã¯ååã®ã¿ã®è¡šç€ºã匷å¶ããŸãã ããã¯
ãŠãŒã¶ãŒãFTPã®ã³ã³ãã³ãããã·ã³è§£æãããå Žåã«ç¹ã«äŸ¿å©ã§ã
éåžžã®ãã£ã¬ã¯ããªãã¥ãŒã¯æšæºã®å€èŠ³ãŸãã¯åœ¢åŒã䜿çšããªãããããã£ã¬ã¯ããªã
ãã®ããã«äœ¿çšãããšããã®ãªãã·ã§ã³ã«ããNLSTã³ãã³ãããµãŒããŒã«éä¿¡ãããŸãã
LISTã®ä»£ããã«ã
泚ïŒäžéšã®FTPãµãŒããŒã¯ãNLSTãžã®å¿çã«ãã¡ã€ã«ã®ã¿ããªã¹ãããŸãã 圌ãã¯ããªã
ãµããã£ã¬ã¯ããªãšã·ã³ããªãã¯ãªã³ã¯ãå«ããŸãã
ïŒPOP3ïŒPOP3ããç¹å®ã®é»åã¡ãŒã«ãååŸããå Žåããã®ã¹ã€ããã¯LISTã匷å¶ããŸã
RETRã®ä»£ããã«å®è¡ãããã³ãã³ãã ããã¯ããŠãŒã¶ãŒã
ç¹å®ã®ã¡ãã»ãŒãžIDããµãŒããŒã«ååšãããã©ãããããã³ãã®ãµã€ãºã確èªãããã
泚ïŒãšçµã¿åããããš -NSã - ãªã¯ãšã¹ã ããã®ãªãã·ã§ã³ã䜿çšããŠéä¿¡ã§ããŸã
代ããã«UIDLã³ãã³ãã䜿çšããããããŠãŒã¶ãŒã¯ã¡ãŒã«ã®äžæã®èå¥åã䜿çšã§ããŸãã
ãªã¯ãšã¹ããè¡ãã®ã¯ã¡ãã»ãŒãžIDãããã ïŒ7.21.5ã§è¿œå ïŒ
-Lã-location
ïŒHTTP / HTTPSïŒãµãŒããŒãèŠæ±ãããããŒãžãå¥ã®ããŒãžã«ç§»åããããšãå ±åããå Žå
å ŽæïŒå ŽæïŒããããŒãš3XXå¿çã³ãŒãã§ç€ºãããïŒããã®ãªãã·ã§ã³
æ°ããå Žæã§curlããªã¯ãšã¹ããããçŽããŸãã äžç·ã«äœ¿çšããå Žå -ç§ã
- å«ã or -ç§ã - é ãèŠæ±ããããã¹ãŠã®ããŒãžã®ããããŒã衚瀺ãããŸãã ãã€
èªèšŒã䜿çšãããcurlã¯ãã®è³æ Œæ å ±ãæåã®ãã¹ãã«ã®ã¿éä¿¡ããŸãã ãã
ãªãã€ã¬ã¯ãã¯å¥ã®ãã¹ãã«ã«ãŒã«ãåããŸããããã¯ååããããšãã§ããŸãã
ãŠãŒã¶ãŒ+ãã¹ã¯ãŒãã ãåç §ããŠãã ãã -- ä¿¡é Œã§ããå Žæ ãããå€æŽããæ¹æ³ã«ã€ããŠã ããªãã¯å¶éããããšãã§ããŸã
ã䜿çšããŠãã©ããŒãããªãã€ã¬ã¯ãã®é --max-redirs ãªãã·ã§ã³ãéžæããŸãã
curlããªãã€ã¬ã¯ãã«ç¶ãããªã¯ãšã¹ããåçŽãªGETã§ã¯ãªãå ŽåïŒããšãã°ãPOST
ãŸãã¯PUTïŒãHTTPå¿çã301ã®å ŽåãGETã䜿çšããŠæ¬¡ã®ãªã¯ãšã¹ããå®è¡ããŸãã
302ããŸãã¯303ãå¿çã³ãŒããä»ã®3xxã³ãŒãã§ãã£ãå Žåãcurlã¯
åãå€æŽãããŠããªãã¡ãœããã䜿çšãã次ã®ãªã¯ãšã¹ãã
30xåŸã«éGETãªã¯ãšã¹ãã¡ãœãããGETã«å€æŽããªãããã«curlã«æ瀺ã§ããŸã
ãã®ããã®å°çšãªãã·ã§ã³ã䜿çšããŠå¿çããŸãã --post301, --post302 ãš
-post303.
--libcurl
ãã®ãªãã·ã§ã³ãéåžžã®curlã³ãã³ãã©ã€ã³ã«è¿œå ãããšãlibcurl-ãååŸãããŸãã
ãã¡ã€ã«ã«æžã蟌ãŸããCãœãŒã¹ã³ãŒãã䜿çšããŠã
ã³ãã³ãã©ã€ã³æäœã¯è¡ããŸãïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã«æå®ãããã¡ã€ã«åã䜿çšãããŸãã ïŒè¿œå ãã
7.16.1ã§ïŒ
-å¶éã¬ãŒã
curlã§äœ¿çšããæ倧転éé床ãæå®ããŸã-ããŠã³ããŒããš
ã¢ããããŒãããŸãã ãã®æ©èœã¯ããã€ããéãããŠããŠã
垯åå¹ å šäœã䜿çšããªãããã«è»¢éããŸãã ãã以å€ã®å Žåãããé ããã
ã ããã
æ¥å°ŸèŸãè¿œå ãããŠããªãéããæå®ãããé床ã¯ãã€ã/ç§ã§æž¬å®ãããŸãã
ãkããŸãã¯ãKããè¿œå ãããšããã®æ°ã¯ãããã€ããšããŠã«ãŠã³ãããããmããŸãã¯ãMãã¯ãããäœæããŸã
ã¡ã¬ãã€ãããgããŸãã¯ãGãã¯ã®ã¬ãã€ãã«ãªããŸãã äŸïŒ200Kã3mã1Gã
æå®ãããé床ã¯ã転éå šäœã§ã«ãŠã³ããããå¹³åé床ã§ãã ãã®æå³ã¯
ãã®ã«ãŒã«ã¯çãããŒã¹ãã§ããé«ã転éé床ã䜿çšããå¯èœæ§ããããŸãããæéã®çµéãšãšãã«
äžããããã¬ãŒã以äžã
ããªãã䜿çšããå Žå -Yã - å¶éé床 ãªãã·ã§ã³ããã®ãªãã·ã§ã³ãåªå ããã
é床å¶éããžãã¯ãç¶æããããã«ãåŸéããããã«æãªãå¯èœæ§ããããŸã
ã¯ãŒãã³ã°ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-ããŒã«ã«ããŒã[-num]
æ¥ç¶ã«äœ¿çšããããŒã«ã«ããŒãçªå·ã®åªå çªå·ãŸãã¯ç¯å²ãèšå®ããŸãã
ããŒãçªå·ã¯æ¬è³ªçã«åžå°ãªãªãœãŒã¹ã§ãããæã ããžãŒã«ãªãããšã«æ³šæããŠãã ãã
ãããã£ãŠããã®ç¯å²ãçãããå€ã«èšå®ãããšãäžèŠãªæ¥ç¶ãçºçããå¯èœæ§ããããŸã
ã»ããã¢ããã®å€±æã ïŒ7.15.2ã§è¿œå ïŒ
-- ä¿¡é Œã§ããå Žæ
ïŒHTTP / HTTPSïŒããã -Lã - äœçœ®ããã ããååãšãã¹ã¯ãŒãããã¹ãŠã®äººã«éä¿¡ã§ããŸã
ãµã€ãããªãã€ã¬ã¯ãããå¯èœæ§ã®ãããã¹ãã ããã«ãããã»ãã¥ãªãã£ãå°å ¥ãããå Žåãšå°å ¥ãããªãå ŽåããããŸã
èªèšŒãéä¿¡ãããµã€ãã«ãµã€ãããªãã€ã¬ã¯ãããå Žåã®éå
infoïŒHTTPåºæ¬èªèšŒã®å Žåã¯ãã¬ãŒã³ããã¹ãïŒã
-mã-max-time
æäœå šäœã«ãããæ倧æéïŒç§åäœïŒã ããã¯äŸ¿å©ã§ã
ãããã¯ãŒã¯ããªã³ã¯ãé ãããã«ããããžã§ããäœæéããã³ã°ããã®ãé²ããã
äžã£ãŠããã 7.32.0以éããã®ãªãã·ã§ã³ã¯XNUMXé²å€ãåãå ¥ããŸãããå®éã®
æå®ãããã¿ã€ã ã¢ãŠããXNUMXé²æ°ã§å¢å ãããšãã¿ã€ã ã¢ãŠãã®ç²ŸåºŠãäœäžããŸã
粟床ã ãåç §ããŠãã ãã --æ¥ç¶ã¿ã€ã ã¢ãŠã ãªãã·ã§ã³ãéžæããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--login-options
ãµãŒããŒèªèšŒäžã«äœ¿çšãããã°ã€ã³ãªãã·ã§ã³ãæå®ããŸãã
ãã°ã€ã³ãªãã·ã§ã³ã䜿çšããŠã䜿çšã§ãããããã³ã«åºæã®ãªãã·ã§ã³ãæå®ã§ããŸã
èªèšŒäžã çŸåšãIMAPãPOP3ãSMTPã®ã¿ããã°ã€ã³ãªãã·ã§ã³ããµããŒãããŠããŸãã
ãã°ã€ã³ãªãã·ã§ã³ã®è©³çŽ°ã«ã€ããŠã¯ãRFC 2384ãRFC 5092ãããã³IETFãåç §ããŠãã ããã
ãã©ããdraft-earhart-url-smtp-00.txtïŒ7.34.0ã§è¿œå ïŒã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--mail-auth
ïŒSMTPïŒåäžã®ã¢ãã¬ã¹ãæå®ããŸãã ããã¯ãèªèšŒãæå®ããããã«äœ¿çšãããŸã
å¥ã®ãµãŒããŒã«äžç¶ãããŠããéä¿¡æžã¿ã¡ãã»ãŒãžã®ã¢ãã¬ã¹ïŒIDïŒã
ïŒ7.25.0ã§è¿œå ïŒ
--mail-from
ïŒSMTPïŒæå®ãããã¡ãŒã«ã®éä¿¡å ãšãªãåäžã®ã¢ãã¬ã¹ãæå®ããŸãã
ïŒ7.20.0ã§è¿œå ïŒ
--max-filesize
ããŠã³ããŒããããã¡ã€ã«ã®æ倧ãµã€ãºïŒãã€ãåäœïŒãæå®ããŸãã èŠæ±ããããã¡ã€ã«ã
ãã®å€ããã倧ããå Žåã転éã¯éå§ããããã«ãŒã«ã¯çµäºæã«æ»ããŸã
ã³ãŒã63ã
泚: ãã¡ã€ã«ãµã€ãºã¯ããŠã³ããŒãåã«åžžã«ããã£ãŠããããã§ã¯ãããŸããããã®ãããªãã¡ã€ã«ã®å Žåãããã¯
ãã¡ã€ã«è»¢éãããããã倧ãããªã£ãå Žåã§ãããªãã·ã§ã³ã¯å¹æããããŸãã
å¶éã ããã¯ãFTP転éãšHTTP転éã®äž¡æ¹ã«é¢ä¿ããŸãã
--mail-rcpt
ïŒSMTPïŒåäžã®ã¢ãã¬ã¹ããŠãŒã¶ãŒåããŸãã¯ã¡ãŒãªã³ã°ãªã¹ãåãæå®ããŸãã
ã¡ãŒã«è»¢éãè¡ãå Žåãåä¿¡è ã¯æå¹ãªã¡ãŒã«ã¢ãã¬ã¹ãæå®ããå¿ èŠããããŸã
ã¡ãŒã«ãéä¿¡ããŸãã ïŒ7.20.0ã§è¿œå ïŒ
ã¢ãã¬ã¹æ€èšŒïŒVRFYã³ãã³ãïŒãå®è¡ããå Žåãåä¿¡è ã¯æ¬¡ã®ããã«ãªããŸãã
ãŠãŒã¶ãŒåãŸãã¯ãŠãŒã¶ãŒåãšãã¡ã€ã³ãšããŠæå®ãããŸãïŒRFC3.5ã®ã»ã¯ã·ã§ã³5321ã«ããïŒã
ïŒ7.34.0ã§è¿œå ïŒ
ã¡ãŒãªã³ã°ãªã¹ãã®å±éïŒEXPNã³ãã³ãïŒãå®è¡ããå Žåãåä¿¡è ã¯æ¬¡ã®ããã«ãªããŸãã
ãFriendsãããLondon-Officeããªã©ã®ã¡ãŒãªã³ã°ãªã¹ãåã䜿çšããŠæå®ããŸãã
ïŒ7.34.0ã§è¿œå ïŒ
--max-redirs
ãªãã€ã¬ã¯ããã©ããŒã®æ倧æ°ãèšå®ããŸãã ããã -Lã - äœçœ® 䜿çšãããŠããã
ãã®ãªãã·ã§ã³ã¯ãã«ãŒã«ããã°ãããããªãã€ã¬ã¯ãã«åŸãã®ãé²ãããã«äœ¿çšã§ããŸãã
ããã©ã«ãã§ã¯ãå¶éã¯50ãªãã€ã¬ã¯ãã«èšå®ãããŠããŸãã ãã®ãªãã·ã§ã³ã-1ã«èšå®ããŠäœæããŸã
ç¡å¶éã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-ã¡ã¿ãªã³ã¯
ãã®ãªãã·ã§ã³ã¯ãcurlã«ç¹å®ã®URIãMetalinkãã¡ã€ã«ãšããŠè§£æããã³åŠçããããã«æ瀺ã§ããŸãïŒäž¡æ¹
ããŒãžã§ã³3ããã³4ïŒRFC 5854ïŒããµããŒããããŠããŸãïŒããã³å ã«ãªã¹ããããŠãããã©ãŒãå©çšããŸã
ãšã©ãŒïŒãã¡ã€ã«ãŸãã¯ãµãŒããŒã䜿çšã§ããªããªã©ïŒãããå Žåã®ãã§ã€ã«ãªãŒããŒçšã
ãŸããããŠã³ããŒãã®å®äºåŸã«ãã¡ã€ã«ã®ããã·ã¥ãæ€èšŒããŸãã ã¡ã¿ãªã³ã¯
ãã¡ã€ã«èªäœã¯ããŠã³ããŒããããŠã¡ã¢ãªã«åŠçãããããŒã«ã«ãã¡ã€ã«ã«ã¯ä¿åãããŸããã
ã·ã¹ãã ã
ãªã¢ãŒãMetalinkãã¡ã€ã«ã䜿çšããäŸïŒ
curl -ã¡ã¿ãªã³ã¯ http://www.example.com/example.metalink
ããŒã«ã«ãã¡ã€ã«ã·ã¹ãã ã§Metalinkãã¡ã€ã«ã䜿çšããã«ã¯ãFILEãããã³ã«ïŒfileïŒ//ïŒã䜿çšããŸãã
curl -ã¡ã¿ãªã³ã¯ãã¡ã€ã«ïŒ//example.metalink
FILEãããã³ã«ãç¡å¹ã«ãªã£ãŠããå ŽåãããŒã«ã«ã䜿çšããæ¹æ³ããªãããšã«æ³šæããŠãã ãã
ãã®èšäºã®å·çæç¹ã§ã®Metalinkãã¡ã€ã«ã ãŸãã -ã¡ã¿ãªã³ã¯ ãš
- å«ã äžç·ã«äœ¿çšããã - å«ã ç¡èŠãããŸãã ããã¯ã
å¿çã®ããããŒã¯MetalinkããŒãµãŒãå£ããããããŒãå«ãŸããŠããå Žå
Metalinkãã¡ã€ã«ã«èšè¿°ãããŠãããã¡ã€ã«ã§ã¯ãããã·ã¥ãã§ãã¯ã¯å€±æããŸãã
ïŒlibmetalinkã©ã€ãã©ãªã«å¯ŸããŠãã«ããããå Žåã7.27.0ã§è¿œå ãããŸãããïŒ
-nã-netrc
ã«ãŒã«ã¹ãã£ã³ãè¡ããŸã .netrc (_netrc Windowsã®å ŽåïŒãŠãŒã¶ãŒã®ããŒã ãã£ã¬ã¯ããªã«ãããã¡ã€ã«
ãã°ã€ã³åãšãã¹ã¯ãŒãã ããã¯éåžžãUnixã®FTPã«äœ¿çšãããŸãã äžç·ã«äœ¿çšããå Žå
HTTPãcurlã¯ãŠãŒã¶ãŒèªèšŒãæå¹ã«ããŸãã èŠã netrc(5) FTP(1) 詳现ã«ã€ããŠã¯
ãã¡ã€ã«åœ¢åŒã ãã®ãã¡ã€ã«ã«é©åãªæš©éããªãå ŽåãCurlã¯æå¥ãèšããŸãã
ïŒäžçãŸãã¯ã°ã«ãŒãã§èªã¿åãå¯èœã§ãã£ãŠã¯ãªããŸããïŒã ç°å¢å€æ°ãHOMEã
ããŒã ãã£ã¬ã¯ããªãèŠã€ããããã«äœ¿çšãããŸãã
ã»ããã¢ããæ¹æ³ã®ç°¡åã§éåžžã«ç°¡åãªäŸ .netrc FTPãžã®ã«ãŒã«ãèš±å¯ããã«ã¯
ãŠãŒã¶ãŒåããmyselfãã§ãã¹ã¯ãŒãããsecretãã®ãã·ã³host.domain.comã¯
次ã®ããã«ãªããŸãã
æ©æ¢° ãã¹ã.ãã¡ã€ã³.com ãã°ã€ã³ èªå password ç§å¯
-Nã-no-buffer
åºåã¹ããªãŒã ã®ãããã¡ãªã³ã°ãç¡å¹ã«ããŸãã éåžžã®äœæ¥ç¶æ³ã§ã¯ãã«ãŒã«ã¯
åºåããå¹æãæã€æšæºã®ãããã¡ãªã³ã°ãããåºåã¹ããªãŒã ã䜿çšããŸã
ãã£ã³ã¯ã®ããŒã¿ãå¿ ãããããŒã¿ãå°çããæ£ç¢ºãªã¿ã€ãã³ã°ã§ã¯ãããŸããã ããã䜿çšãã
ãªãã·ã§ã³ã¯ãã®ãããã¡ãªã³ã°ãç¡å¹ã«ããŸãã
ããã¯ãææžåãããŠããåŠå®ããããªãã·ã§ã³åã§ããããšã«æ³šæããŠãã ããã ãããã£ãŠã䜿çšããããšãã§ããŸã - ãããã¡ ããž
ãããã¡ãªã³ã°ãå®æœããŸãã
--netrcãã¡ã€ã«
ãã®ãªãã·ã§ã³ã¯ã«äŒŒãŠããŸã --netrcããã¹ãæå®ããããšãé€ããŠïŒçµ¶å¯ŸãŸãã¯
çžå¯ŸïŒCurlã䜿çšããå¿ èŠãããnetrcãã¡ã€ã«ã«ã æå®ã§ããnetrcã¯XNUMXã€ã ãã§ã
åŒã³åºãããšã®ãã¡ã€ã«ã ããã€ãã®å Žå --netrcãã¡ã€ã« ãªãã·ã§ã³ãæäŸãããŠããŸããã last
XNUMX〠䜿çšãããŸãã ïŒ7.21.5ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ã¯ã --netrc ãããã¯çžäºã«æä»çã§ããããã ãããªã
ãŸããåŸã --netrc-ãªãã·ã§ã³ æå®ãããŠããå Žåã
--netrc-ãªãã·ã§ã³
éåžžã«äŒŒãŠ --netrcããã ãããã®ãªãã·ã§ã³ã¯.netrcã䜿çšããŸã ä»»æ ããã§ã¯ãªã
ãšããŠå¿ é --netrc ãªãã·ã§ã³ã¯ãããŸããã
- 亀æž
ïŒHTTPïŒããŽã·ãšãŒãïŒSPNEGOïŒèªèšŒãæå¹ã«ããŸãã
ãããã·èªèšŒã§ããŽã·ãšãŒãïŒSPNEGOïŒãæå¹ã«ããå Žåã¯ã次ã䜿çšããŸãã
--ãããã·ããŽã·ãšãŒã.
ãã®ãªãã·ã§ã³ã«ã¯ãGSS-APIãŸãã¯SSPIãµããŒãã§æ§ç¯ãããã©ã€ãã©ãªãå¿ èŠã§ãã ã€ãããŸã -Vã
- ããŒãžã§ã³ ã«ãŒã«ãGSS-API / SSPIããã³SPNEGOããµããŒãããŠãããã©ããã確èªããŸãã
ãã®ãªãã·ã§ã³ã䜿çšããå Žåã¯ãåœç©ãæäŸããå¿ èŠããããŸã -uã - ãŠãŒã¶ãŒ æå¹ã«ãããªãã·ã§ã³
èªèšŒã³ãŒããæ£ããã '-uïŒ'ãéä¿¡ããã ãã§ããŠãŒã¶ãŒåãš
ããã®ãã¹ã¯ãŒã -u ãªãã·ã§ã³ã¯å®éã«ã¯äœ¿çšãããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã®ã¿ã䜿çšãããŸãã
-ããŒãã¢ã©ã€ããªã
ããã©ã«ãã®curlã®ããã«ãTCPæ¥ç¶ã§ã®ããŒãã¢ã©ã€ãã¡ãã»ãŒãžã®äœ¿çšãç¡å¹ã«ããŸã
ããããæå¹ã«ããŸãã
ããã¯ãææžåãããŠããåŠå®ããããªãã·ã§ã³åã§ããããšã«æ³šæããŠãã ããã ãããã£ãŠã䜿çšããããšãã§ããŸã - çãç¶ãã
ããŒãã¢ã©ã€ãã匷å¶ããŸãã
--ã»ãã·ã§ã³ ID ãªã
ïŒSSLïŒcurlã«ããSSLã»ãã·ã§ã³IDãã£ãã·ã³ã°ã®äœ¿çšãç¡å¹ã«ããŸãã ããã©ã«ãã§ã¯ããã¹ãŠã®è»¢éã¯
ãã£ãã·ã¥ã䜿çšããŠè¡ãããŸãã äœãå·ã€ããŠã¯ãããŸãããã
SSLã»ãã·ã§ã³IDãåå©çšãããšãå®éã«ã¯å£ããSSLå®è£ ãããããã§ãã
æåããã«ã¯ããããç¡å¹ã«ããå¿ èŠãããå ŽåããããŸãã ïŒ7.16.0ã§è¿œå ïŒ
ããã¯ãææžåãããŠããåŠå®ããããªãã·ã§ã³åã§ããããšã«æ³šæããŠãã ããã ãããã£ãŠã䜿çšããããšãã§ããŸã - ã»ãã·ã§ã³ID
ã»ãã·ã§ã³IDãã£ãã·ã³ã°ãå®æœããŸãã
--noproxy
ãããã·ã䜿çšããªããã¹ãã®ã³ã³ãåºåããªã¹ãïŒæå®ãããŠããå ŽåïŒã The
ã¯ã€ã«ãã«ãŒãã®ã¿ãåäžã®*æåã§ããããã¹ãŠã®ãã¹ãã«äžèŽããå¹æçã«
ãããã·ãç¡å¹ã«ããŸãã ãã®ãªã¹ãã®åååã¯ããã¡ã€ã³ãšããŠäžèŽããŸãã
ãã¹ãåããŸãã¯ãã¹ãåèªäœãå«ãŸããŸãã ããšãã°ãlocal.comã¯äžèŽããŸã
local.comãlocal.comïŒ80ãããã³www.local.comã§ãããwww.notlocal.comã¯å¯Ÿè±¡å€ã§ãã ïŒã«è¿œå
7.19.4ïŒã
--ntlmïŒHTTPïŒNTLMèªèšŒãæå¹ã«ããŸãã NTLMèªèšŒæ¹åŒã¯ã
Microsoftã§ãããIISWebãµãŒããŒã«ãã£ãŠäœ¿çšãããŸãã ããã¯ç¬èªã®ãããã³ã«ã§ãããéã§ãã
è³¢ã人ã ã«ãã£ãŠèšèšããã圌ãã®åªåã«åºã¥ããŠã«ãŒã«ã§å®è£ ãããŸããã ãã®
ããçš®ã®è¡åã¯æ¿èªãããã¹ãã§ã¯ãããŸãããããªãã¯äœ¿çšãããã¹ãŠã®äººãå±ãŸãã¹ãã§ã
NTLMã¯ã代ããã«ã次ã®ãããªå ¬éãããææžåãããèªèšŒæ¹æ³ã«åãæ¿ããŸãã
ãã€ãžã§ã¹ãã
ãããã·èªèšŒã§NTLMãæå¹ã«ããå Žåã¯ã次ã䜿çšããŸãã --proxy-ntlm.
ãã®ãªãã·ã§ã³ã«ã¯ãSSLãµããŒãã§æ§ç¯ãããã©ã€ãã©ãªãå¿ èŠã§ãã ã€ãããŸã -Vã - ããŒãžã§ã³ ãã©ããã確èªãã
ã«ãŒã«ã¯NTLMããµããŒãããŠããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåã®ãªãã·ã§ã³ã®ã¿ã䜿çšãããŸãã
-oã-output
åºåãã«æžã蟌ãstdoutã®ä»£ããã«ã {}ãŸãã¯[]ã䜿çšããŠãã§ããããŠããå Žå
è€æ°ã®ããã¥ã¡ã³ãã®å ŽåããïŒãã®åŸã«æ°åãç¶ããããšãã§ããŸãæå®åã
ãã®å€æ°ã¯ããã§ãããããURLã®çŸåšã®æååã«çœ®ãæããããŸãã
ã®ããã«ïŒ
curl httpïŒ// {oneãtwo} .site.com -o "file_ïŒ1.txt"
ãŸãã¯ã次ã®ãããªããã€ãã®å€æ°ã䜿çšããŸãã
curl httpïŒ// {siteãhost} .host [1-5] .com -o "ïŒ1_ïŒ2"
ãã®ãªãã·ã§ã³ã¯ã䜿çšããŠããURLã®æ°ã ã䜿çšã§ããŸãã
åç §ããŠãã ãã --create-dirs ããŒã«ã«ãã£ã¬ã¯ããªãåçã«äœæãããªãã·ã§ã³ã
åºåãã-ãïŒåäžã®ããã·ã¥ïŒãšããŠæå®ãããšãåºåã¯åŒ·å¶çã«å®è¡ãããŸãã
stdoutã
-Oã-remote-name
ååŸãããªã¢ãŒããã¡ã€ã«ã®ãããªååã®ããŒã«ã«ãã¡ã€ã«ã«åºåãæžã蟌ã¿ãŸãã ïŒãã¡ã€ã«éšåã®ã¿
ãªã¢ãŒããã¡ã€ã«ã®ã䜿çšããããšããã¹ãåæãããŸããïŒ
ä¿åã«äœ¿çšãããªã¢ãŒããã¡ã€ã«åã¯ãæå®ãããURLããæœåºãããäœããããŸãã
elseã
ãã®çµæããã¡ã€ã«ã¯çŸåšã®äœæ¥ãã£ã¬ã¯ããªã«ä¿åãããŸãã ããããããã
ãã¡ã€ã«ãå¥ã®ãã£ã¬ã¯ããªã«ä¿åãããå Žåã¯ãçŸåšã®äœæ¥ãå€æŽããŠãã ãã
ã§curlãåŒã³åºãåã®ãã£ã¬ã¯ã㪠-Oã -ãªã¢ãŒãå åœæïŒ
ãã¡ã€ã«åã«å¯ŸããŠè¡ãããURLãã³ãŒãã¯ãããŸããã ïŒ 20ãŸãã¯ä»ã®URLãšã³ã³ãŒããããŠããå Žå
ååã®äžéšã¯ããã¡ã€ã«åãšããŠãã®ãŸãŸäœ¿çšãããŸãã
ãã®ãªãã·ã§ã³ã¯ã䜿çšããŠããURLã®æ°ã ã䜿çšã§ããŸãã
--oauth2-bearer
ïŒIMAPãPOP3ãSMTPïŒOAUTH2.0ãµãŒããŒèªèšŒçšã®ãã¢ã©ãŒããŒã¯ã³ãæå®ããŸãã
ãã¢ã©ãŒããŒã¯ã³ã¯ãæå®å¯èœãªãŠãŒã¶ãŒåãšçµã¿åãããŠäœ¿çšââãããŸã
ã®äžéšãšã㊠--url or -uã - ãŠãŒã¶ãŒ ãªãã·ã§ã³ã
Bearer TokenãšãŠãŒã¶ãŒåã¯ãRFC6750ã«åŸã£ãŠãã©ãŒããããããŠããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--proxy-header
ïŒHTTPïŒHTTPããããã·ã«éä¿¡ãããšãã«ãªã¯ãšã¹ãã«å«ããè¿œå ã®ããããŒã ããŠãããã§ã
è¿œå ã®ããããŒãããã€ã§ãæå®ããŸãã ããã¯ãšåçã®ãªãã·ã§ã³ã§ã -NSã - ããã
ãã ããå¿ èŠãªå Žåã®CONNECTèŠæ±ã®å Žåãšåæ§ã«ããããã·éä¿¡çšã§ãã
ãããã·ã«éä¿¡ãããåå¥ã®ããããŒãšãå®éã®ãªã¢ãŒããã¹ãã«éä¿¡ãããããããŒã
curlã¯ãè¿œå /眮æããåããããŒãé©åãªæ«å°Ÿã§éä¿¡ãããããšã確èªããŸã-
of-lineããŒã«ãŒããããã£ãŠã ããããŒã³ã³ãã³ãã®äžéšãšããŠãããè¿œå ããŸãã
æ¹è¡ããã£ãªããžãªã¿ãŒã³ãè¿œå ããªãã§ãã ããããããã¯ããªãã®ããã«ç©äºãå°ç¡ãã«ããã ãã§ãã
ãã®ãªãã·ã§ã³ã§æå®ãããããããŒã¯ãcurlãèªèããŠãããªã¯ãšã¹ãã«ã¯å«ãŸããŸãã
ãããã·ã«ã¯éä¿¡ãããŸããã
ãã®ãªãã·ã§ã³ã¯ãè€æ°ã®ããããŒãè¿œå /眮æ/åé€ããããã«è€æ°å䜿çšã§ããŸãã
ïŒ7.37.0ã§è¿œå ïŒ
-pã-proxytunnel
HTTPãããã·ã䜿çšããå ŽåïŒ-NSã - ãããã·ãŒïŒããã®ãªãã·ã§ã³ã¯éHTTPãããã³ã«ãåŒãèµ·ãããŸã
åã«HTTPã®ãããªããšãããããã«ãããã·ã䜿çšããã®ã§ã¯ãªãããããã·ãä»ããŠãã³ããªã³ã°ãè©Šã¿ãããš
ãªãã¬ãŒã·ã§ã³ã ãã³ãã«ã¢ãããŒãã¯ãHTTPãããã·ã®CONNECTèŠæ±ãš
ãããã·ãcurlãå¿ èŠãšãããªã¢ãŒãããŒãçªå·ãžã®çŽæ¥æ¥ç¶ãèš±å¯ããå¿ èŠããããŸã
ã«ãã³ãã«ããŸãã
-Pã-ftp-port
ïŒFTPïŒFTPã«æ¥ç¶ãããšãã«ãããã©ã«ãã®ã€ãã·ãšãŒã¿ãŒ/ãªã¹ããŒã®åœ¹å²ãéã«ããŸãã ãã®
ã¹ã€ããã¯curlã«ã¢ã¯ãã£ãã¢ãŒãã䜿çšãããŸãã å®éã«ã¯ãcurlã¯ãµãŒããŒã«æ¬¡ã®ããã«æ瀺ããŸã
ããã·ãã¢ãŒããèŠæ±ããŠããéã«ãã¯ã©ã€ã¢ã³ãã®æå®ãããã¢ãã¬ã¹ãšããŒãã«æ¥ç¶ãçŽããŸã
ãµãŒããŒãæ¥ç¶ããIPã¢ãã¬ã¹ãšããŒããèšå®ããŸãã ããã»ãããã
次ã®ããããã«ãªããŸãïŒ
ã€ã³ã¿ãã§ãŒã¹
ã€ãŸãããeth0ãã䜿çšããŠã䜿çšããã€ã³ã¿ãŒãã§ã€ã¹ã®IPã¢ãã¬ã¹ãæå®ããŸãïŒUnix
ã®ã¿ïŒ
IPã¢ãã¬ã¹
ã€ãŸããæ£ç¢ºãªIPã¢ãã¬ã¹ãæå®ããã«ã¯ã192.168.10.1ã
ãã¹ãå
ã€ãŸãããã·ã³ãæå®ããããã®ãmy.host.domainã
-curlã«ãã³ã³ãããŒã«ã«ãã§ã«äœ¿çšãããŠããã®ãšåãIPã¢ãã¬ã¹ãéžæãããŸã
æ¥ç¶
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã ã®äœ¿çšãç¡å¹ã«ãã
ãšã®ããŒã --ftp-pasvã PORTã®ä»£ããã«EPRTã³ãã³ãã䜿çšããè©Šã¿ãç¡å¹ã«ããŸã
䜿çšããŠã --disable-eprtã EPRTã¯æ¬åœã«PORT ++ã§ãã
7.19.5以éã§ã¯ãã¢ãã¬ã¹ã®å³åŽã«ãïŒ[start]-[end]ããè¿œå ã§ããŸãã
䜿çšããTCPããŒãç¯å²ãcurlã«æ瀺ããŸãã ã€ãŸããããããŒãç¯å²ãæå®ããŸã
äœãæ°å€ããé«ãæ°å€ãžã åäžã®çªå·ã§ãæ©èœããŸããã泚æããŠãã ãã
ããŒãã䜿çšã§ããªãå¯èœæ§ããããããé害ã®ãªã¹ã¯ãé«ãŸããŸãã
- ãã¹
ïŒSSL / SSHïŒç§å¯éµã®ãã¹ãã¬ãŒãº
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-- ãã®ãŸãŸã®ãã¹
ã®ã·ãŒã±ã³ã¹ãåŠçããªãããã«curlã«æ瀺ããŸã /../ or /./ æå®ãããURLãã¹å ã éåžžã¯
ã«ãŒã«ã¯æšæºã«åŸã£ãŠããããæŒãã€ã¶ããããŒãžããŸããããã®ãªãã·ã§ã³ã䜿çšãããšã
ããããªãããã«èšã£ãŠãã ããã
ïŒ7.42.0ã§è¿œå ïŒ
--post301
ïŒHTTPïŒRFC 7230 / 6.4.2ãå°éããPOSTãªã¯ãšã¹ããGETã«å€æããªãããã«curlã«æ瀺ããŸã
301ãªãã€ã¬ã¯ãã«åŸããšãã®ãªã¯ãšã¹ãã éRFCã®åäœã¯ã
Webãã©ãŠã¶ãŒãªã®ã§ãcurlã¯äžè²«æ§ãç¶æããããã«ããã©ã«ãã§å€æãè¡ããŸãã
ãã ãããµãŒããŒã¯ããã®ãããªãªãã€ã¬ã¯ãåŸãPOSTãç¶æããããã«POSTãå¿ èŠãšããå ŽåããããŸãã
ãã®ãªãã·ã§ã³ã¯ã䜿çšããå Žåã«ã®ã¿æå³ããããŸã -Lã - äœçœ® ïŒ7.17.1ã§è¿œå ïŒ
--post302
ïŒHTTPïŒRFC 7230 / 6.4.3ãå°éããPOSTãªã¯ãšã¹ããGETã«å€æããªãããã«curlã«æ瀺ããŸã
302ãªãã€ã¬ã¯ãã«åŸããšãã®ãªã¯ãšã¹ãã éRFCã®åäœã¯ã
Webãã©ãŠã¶ãŒãªã®ã§ãcurlã¯äžè²«æ§ãç¶æããããã«ããã©ã«ãã§å€æãè¡ããŸãã
ãã ãããµãŒããŒã¯ããã®ãããªãªãã€ã¬ã¯ãåŸãPOSTãç¶æããããã«POSTãå¿ èŠãšããå ŽåããããŸãã
ãã®ãªãã·ã§ã³ã¯ã䜿çšããå Žåã«ã®ã¿æå³ããããŸã -Lã - äœçœ® ïŒ7.19.1ã§è¿œå ïŒ
--post303
ïŒHTTPïŒRFC 7230 / 6.4.4ãå°éããPOSTãªã¯ãšã¹ããGETã«å€æããªãããã«curlã«æ瀺ããŸã
303ãªãã€ã¬ã¯ãã«åŸããšãã®ãªã¯ãšã¹ãã éRFCã®åäœã¯ã
Webãã©ãŠã¶ãŒãªã®ã§ãcurlã¯äžè²«æ§ãç¶æããããã«ããã©ã«ãã§å€æãè¡ããŸãã
ãã ãããµãŒããŒã¯ããã®ãããªãªãã€ã¬ã¯ãåŸãPOSTãç¶æããããã«POSTãå¿ èŠãšããå ŽåããããŸãã
ãã®ãªãã·ã§ã³ã¯ã䜿çšããå Žåã«ã®ã¿æå³ããããŸã -Lã - äœçœ® ïŒ7.26.0ã§è¿œå ïŒ
-ããã
ãªã¹ãããããããã³ã«ãæåã®ååŸã«äœ¿çšããããã«curlã«æ瀺ããŸãã ãããã³ã«ã¯
å·Šããå³ã«è©äŸ¡ãããã³ã³ãã§åºåãããããããããããã³ã«åãŸãã¯
'all'ããªãã·ã§ã³ã§XNUMXå以äžã®ä¿®é£Ÿåãåã«ä»ããããŸãã 䜿çšå¯èœãªä¿®é£Ÿåã¯æ¬¡ã®ãšããã§ãã
+ ãã§ã«èš±å¯ãããŠãããããã³ã«ã«å ããŠããã®ãããã³ã«ãèš±å¯ããŸãïŒããã¯
修食åã䜿çšãããŠããªãå Žåã®ããã©ã«ãïŒã
- ãã®ãããã³ã«ãæåŠãããã§ã«èš±å¯ãããŠãããããã³ã«ã®ãªã¹ãããåé€ããŸãã
= ãã®ãããã³ã«ã®ã¿ãèš±å¯ããŸãïŒãã§ã«èš±å¯ãããŠãããªã¹ãã¯ç¡èŠããŸãïŒã
ã«ã³ãåºåããªã¹ãã®åŸç¶ã®ãšã³ããªã«ãã£ãŠåŸã§å€æŽããå Žåã
äŸïŒ
-ããã -ftps ããã©ã«ãã®ãããã³ã«ã䜿çšããŸãããftpãç¡å¹ã«ããŸã
-ããã -ãã¹ãŠãhttpsã+ http
httpãšhttpsã®ã¿ãæå¹ã«ããŸã
-ããã = httpãhttps
ãŸããhttpãšhttpsã®ã¿ãæå¹ã«ããŸã
äžæãªãããã³ã«ã¯èŠåãçæããŸãã ããã«ãããã¹ã¯ãªããã¯å®å šã«ååšã«äŸåã§ããŸã
ã®ãµããŒãã«äŸåããããšãªããæœåšçã«å±éºãªãããã³ã«ãç¡å¹ã«ããããšãã§ããŸã
ãšã©ãŒãåé¿ããããã«ããã®ãããã³ã«ãcurlã«çµã¿èŸŒãŸããŠããŸãã
ãã®ãªãã·ã§ã³ã¯è€æ°å䜿çšã§ããŸãããã®å Žåãå¹æã¯ãšåãã§ãã
ãããã³ã«ããªãã·ã§ã³ã®XNUMXã€ã®ã€ã³ã¹ã¿ã³ã¹ã«é£çµããŸãã
ïŒ7.20.2ã§è¿œå ïŒ
--proto-default
䜿çšããããã«curlã«æ瀺ããŸã ã¹ããŒã åãæ¬ èœããŠããURLã®å Žåã
äŸïŒ
--proto-default https ftp.mozilla.org
https://ftp.mozilla.org
äžæãŸãã¯ãµããŒããããŠããªããããã³ã«ã«ãããšã©ãŒãçºçããŸã CURLE_UNSUPPORTED_PROTOCOL.
ãã®ãªãã·ã§ã³ã¯ãããã©ã«ãã®ãããã·ãããã³ã«ïŒhttpïŒãå€æŽããŸããã
ãã®ãªãã·ã§ã³ããªããšãcurlã¯ãã¹ãã«åºã¥ããŠæšæž¬ããŸãããåç §ããŠãã ããã --url 詳现ã«ã€ããŠã¯ã
ïŒ7.45.0ã§è¿œå ïŒ
--proto-redir
ãªã¹ãããããããã³ã«ããªãã€ã¬ã¯ãã§äœ¿çšããããã«curlã«æ瀺ããŸãã ãããã³ã«ã®æ¹æ³ã«ã€ããŠã¯ã-protoãåç §ããŠãã ãã
ãè¡šãããŸãã
äŸïŒ
--proto-redir -allãhttpãhttps
ãªãã€ã¬ã¯ãæã«HTTPãšHTTPSã®ã¿ãèš±å¯ããŸãã
ããã©ã«ãã§ã¯ãcurlã¯ãã»ãã¥ãªãã£ã®ããã«ç¡å¹ã«ãããŠããããã€ãã®ãããã³ã«ãé€ããŠããªãã€ã¬ã¯ãã§ãã¹ãŠã®ãããã³ã«ãèš±å¯ããŸã
çç±ïŒ7.19.4以éãFILEãšSCPãç¡å¹ã«ãªãã7.40.0以éãSMBãšSMBSãç¡å¹ã«ãªããŸãã
ç¡å¹ã æå®ãã ã or +ãã¹ãŠ ããããå«ããªãã€ã¬ã¯ãã§ãã¹ãŠã®ãããã³ã«ãæå¹ã«ããŸã
ã»ãã¥ãªãã£ã®ããã«ç¡å¹ã«ãªã£ãŠããŸãã
ïŒ7.20.2ã§è¿œå ïŒ
--proxy-anyauth
ãšéä¿¡ãããšãã«é©åãªèªèšŒæ¹æ³ãéžæããããã«curlã«æ瀺ããŸã
äžãããããããã·ã ããã«ãããäœåãªèŠæ±/å¿çã®ã©ãŠã³ãããªãããçºçããå¯èœæ§ããããŸãã ïŒã«è¿œå
7.13.2ïŒ
--ãããã·-åºæ¬
æå®ããããã®ãšéä¿¡ãããšãã«HTTPåºæ¬èªèšŒã䜿çšããããã«curlã«æ瀺ããŸã
ãããã·ãŒã ã€ãããŸã -åºæ¬ ãªã¢ãŒããã¹ãã§HTTPBasicãæå¹ã«ããããã ããŒã·ãã¯ãããã©ã«ãã§ã
curlããããã·ã§äœ¿çšããèªèšŒæ¹æ³ã
-ãããã·ãã€ãžã§ã¹ã
æå®ããããã®ãšéä¿¡ãããšãã«HTTPãã€ãžã§ã¹ãèªèšŒã䜿çšããããã«curlã«æ瀺ããŸã
ãããã·ãŒã ã€ãããŸã - ãã€ãžã§ã¹ã ãªã¢ãŒããã¹ãã§HTTPãã€ãžã§ã¹ããæå¹ã«ããããã
--ãããã·ããŽã·ãšãŒã
ãšéä¿¡ãããšãã«HTTPããŽã·ãšãŒã·ã§ã³ïŒSPNEGOïŒèªèšŒã䜿çšããããã«curlã«æ瀺ããŸã
æå®ããããããã·ã ã€ãããŸã - äº€æž ãªã¢ãŒãã§HTTPããŽã·ãšãŒã·ã§ã³ïŒSPNEGOïŒãæå¹ã«ãããã
ãã¹ãã ïŒ7.17.1ã§è¿œå ïŒ
--proxy-ntlm
æå®ããããããã·ãšéä¿¡ãããšãã«HTTPNTLMèªèšŒã䜿çšããããã«curlã«æ瀺ããŸãã
ã --ntlm ãªã¢ãŒããã¹ãã§NTLMãæå¹ã«ããããã
--proxy-service-name
ãã®ãªãã·ã§ã³ã䜿çšãããšããããã·ããŽã·ãšãŒã·ã§ã³ã®ãµãŒãã¹åãå€æŽã§ããŸãã
äŸïŒ-proxy-negotiate proxy-name --proxy ãµãŒãã¹å sockdã¯äœ¿çšããŸã
sockd / proxy-nameã ïŒ7.43.0ã§è¿œå ïŒã
--proxy1.0
æå®ãããHTTP1.0ãããã·ã䜿çšããŸãã ããŒãçªå·ãæå®ãããŠããªãå Žåã¯ã
ããŒã1080ã§æ³å®ã
ãããšHTTPãããã·ãªãã·ã§ã³ã®å¯äžã®éãïŒ-NSã - ãããã·ãŒïŒãããã¯
ãããã·ãä»ããŠCONNECTã䜿çšããããšãããšã代ããã«HTTP1.0ãããã³ã«ãæå®ãããŸã
ããã©ã«ãã®HTTP1.1ã®ã
--pubkey
ïŒSSHïŒå ¬ééµãã¡ã€ã«åã ãã®åå¥ã®å ¬ééµãæäŸã§ããŸã
ãã¡ã€ã«ã«ãœãããŠã§ã¢ãæå®ããå¿ èŠããããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
ïŒ7.39.0以éãcurlã¯å ¬ééµãããèªåçã«æœåºããããšããŸãã
ç§å¯éµãã¡ã€ã«ã§ãããããéåžžããã®ãªãã·ã§ã³ãæž¡ãå¿ èŠã¯ãããŸããã ããã«æ³šæããŠãã ãã
å ¬ééµæœåºã§ã¯ãlibcurlãlibssh2ã®ã³ããŒã«å¯ŸããŠãªã³ã¯ããå¿ èŠããããŸã
ããèªäœãOpenSSLã«å¯ŸããŠãªã³ã¯ãããŠãã以äžãïŒ
-qã³ãã³ãã©ã€ã³ã®æåã®ãã©ã¡ãŒã¿ãŒãšããŠäœ¿çšããå Žåã ã«ãŒã« èšå®ãã¡ã€ã«ã¯ããŸãã
èªãã§äœ¿çšããã ãåç §ããŠãã ãã -Kã --config ããã©ã«ãã®èšå®ãã¡ã€ã«ã®è©³çŽ°ã«ã€ããŠã¯
æ€çŽ¢ãã¹ã
-Qã-quote
ïŒFTP / SFTPïŒãªã¢ãŒãFTPãŸãã¯SFTPãµãŒããŒã«ä»»æã®ã³ãã³ããéä¿¡ããŸãã èŠç©ãã
ã³ãã³ãã¯ã転éãè¡ãããåïŒæåã®é害è ã®çŽåŸïŒã«éä¿¡ãããŸã
æ£ç¢ºã«ã¯ãFTP転éã®ã³ãã³ãïŒã ã³ãã³ããå®è¡ããã«ã¯ã
転éãæåããããæ¥é èŸ '-'ãä»ããŸãã åŸã«ã³ãã³ããéä¿¡ããã«ã¯
curlã¯ã転éã³ãã³ãã®çŽåã«äœæ¥ãã£ã¬ã¯ããªãå€æŽããŸããããã¬ãã£ãã¯ã¹
'+'ãå«ãã³ãã³ãïŒããã¯FTPã§ã®ã¿ãµããŒããããŸãïŒã ä»»æã®æ°ãæå®ã§ããŸã
ã³ãã³ãã®ã ãµãŒããŒãã³ãã³ãã®XNUMXã€ã«å¯ŸããŠå€±æãè¿ããå Žåãå šäœ
æäœã¯äžæ¢ãããŸãã æ§æçã«æ£ããFTPã³ãã³ããRFCãšããŠéä¿¡ããå¿ èŠããããŸã
959ã¯ãFTPãµãŒããŒããŸãã¯ä»¥äžã«ãªã¹ããããŠããã³ãã³ãã®XNUMXã€ãSFTPãµãŒããŒã«å®çŸ©ããŸãã
ãã®ãªãã·ã§ã³ã¯è€æ°å䜿çšã§ããŸãã FTPãµãŒããŒãšè©±ããšãã¯ããã¬ãã£ãã¯ã¹ãä»ããŸã
ã³ãã³ãã次ã®ããã«å€±æããå Žåã§ãcurlãç¶è¡ããããã®ã¢ã¹ã¿ãªã¹ã¯ïŒ*ïŒä»ãã®ã³ãã³ã
ããã©ã«ãã®ã«ãŒã«ã¯æåã®å€±æã§åââæ¢ããŸãã
SFTPã¯ãã€ããªãããã³ã«ã§ãã FTPãšã¯ç°ãªããcurlã¯SFTPèŠç©ããã³ãã³ãã解éããŸã
ãããããµãŒããŒã«éä¿¡ããåã«ããèªäœã ãã¡ã€ã«åã¯ã·ã§ã«ã¹ã¿ã€ã«ã§åŒçšã§ããŸã
ã¹ããŒã¹ãŸãã¯ç¹æ®æåãåã蟌ã¿ãŸãã 以äžã¯ããµããŒããããŠãããã¹ãŠã®SFTPã®ãªã¹ãã§ãã
åŒçšã³ãã³ãïŒ
chgrpã°ã«ãŒããã¡ã€ã«
chgrpã³ãã³ãã¯ãfileãªãã©ã³ãã§æå®ããããã¡ã€ã«ã®ã°ã«ãŒãIDã次ã®ããã«èšå®ããŸãã
ã°ã«ãŒããªãã©ã³ãã§æå®ãããã°ã«ãŒãIDã ã°ã«ãŒããªãã©ã³ãã¯XNUMXé²æ°ã§ã
æŽæ°ã°ã«ãŒãIDã
chmodã¢ãŒããã¡ã€ã«
chmodã³ãã³ãã¯ãæå®ããããã¡ã€ã«ã®ãã¡ã€ã«ã¢ãŒãããããå€æŽããŸãã The
modeãªãã©ã³ãã¯ãXNUMXé²æ°ã®æŽæ°ã¢ãŒãçªå·ã§ãã
chownãŠãŒã¶ãŒãã¡ã€ã«
chownã³ãã³ãã¯ãfileãªãã©ã³ãã§æå®ããããã¡ã€ã«ã®ææè ã次ã®ããã«èšå®ããŸãã
ãŠãŒã¶ãŒãªãã©ã³ãã§æå®ããããŠãŒã¶ãŒIDã ãŠãŒã¶ãŒãªãã©ã³ãã¯XNUMXé²æ°ã§ã
æŽæ°ã®ãŠãŒã¶ãŒIDã
ln ãœãŒã¹ãã¡ã€ã« ã¿ãŒã²ãããã¡ã€ã«
lnã³ãã³ããšsymlinkã³ãã³ãã¯ãtarget_fileã«ã·ã³ããªãã¯ãªã³ã¯ãäœæããŸã
source_fileã®å Žæãæãå Žæã
mkdir ãã£ã¬ã¯ããªå
mkdirã³ãã³ãã¯ãdirectory_nameãªãã©ã³ãã§æå®ããããã£ã¬ã¯ããªãäœæããŸãã
pwd pwdã³ãã³ãã¯ãçŸåšã®äœæ¥ã®çµ¶å¯Ÿãã¹åãè¿ããŸã
ãã£ã¬ã¯ããªã«ãããŸãã
ãœãŒã¹ã¿ãŒã²ããã®ååãå€æŽ
renameã³ãã³ãã¯ããœãŒã¹ãªãã©ã³ãã§æå®ããããã¡ã€ã«ãŸãã¯ãã£ã¬ã¯ããªã®ååãå€æŽããŸã
ã¿ãŒã²ãããªãã©ã³ãã§æå®ãããå®å ãã¹ãžã
rmãã¡ã€ã«
rmã³ãã³ãã¯ããã¡ã€ã«ãªãã©ã³ãã§æå®ããããã¡ã€ã«ãåé€ããŸãã
rmdirãã£ã¬ã¯ããª
rmdirã³ãã³ãã¯ããã£ã¬ã¯ããªã«ãã£ãŠæå®ããããã£ã¬ã¯ããªãšã³ããªãåé€ããŸã
空ã®å Žåããªãã©ã³ãã
ã·ã³ããªãã¯ãªã³ã¯source_filetarget_file
lnãåç §ããŠãã ããã
-rã-range
ïŒHTTP / FTP / SFTP / FILEïŒãããã€ãç¯å²ïŒã€ãŸããéšåçãªããã¥ã¡ã³ãïŒãååŸããŸã
HTTP / 1.1ãFTPãŸãã¯SFTPãµãŒããŒãŸãã¯ããŒã«ã«ãã¡ã€ã«ã ç¯å²ã¯æ°å€ã§æå®ã§ããŸã
æ¹æ³ã®ã
0-499 æåã®500ãã€ããæå®ããŸã
500-999 500çªç®ã®XNUMXãã€ããæå®ããŸã
-500 æåŸã®500ãã€ããæå®ããŸã
9500- ãªãã»ãã9500以éã®ãã€ããæå®ããŸã
0-0ã-1 æåãšæåŸã®ãã€ãã®ã¿ãæå®ããŸãïŒ*ïŒïŒHTTPïŒ
100-199,500-599
100ã€ã®å¥ã ã®XNUMXãã€ãç¯å²ãæå®ããŸãïŒ*ïŒïŒHTTPïŒ
ïŒ*ïŒ=ããã«ããããµãŒããŒããã«ãããŒãå¿çã§å¿çããããšã«æ³šæããŠãã ããã
ã®ãéå§ãããã³ãåæ¢ããã£ãŒã«ãã§ã¯ãæ°åïŒ0ã9ïŒã®ã¿ãæå¹ã§ãã
'start-stop'ç¯å²æ§æã ç¯å²å ã«æ°å以å€ã®æåãæå®ãããŠããå Žåã
ãµãŒããŒã®æ§æã«ãã£ãŠã¯ããµãŒããŒã®å¿çã¯æå®ãããŸããã
ãŸããå€ãã®HTTP /1.1ãµãŒããŒã«ã¯ãã®æ©èœããªãããšã«ã泚æããŠãã ããã
æå¹ã«ãªã£ãŠãããããç¯å²ãååŸããããšãããšã代ããã«å šäœãååŸãããŸã
ã®è³æããåç §ãã ããã
FTPããã³SFTPç¯å²ã®ããŠã³ããŒãã¯ãåçŽãªãéå§-åæ¢ãæ§æã®ã¿ããµããŒãããŸã
ïŒãªãã·ã§ã³ã§ãæ°åã®XNUMXã€ãçç¥ããŸãïŒã FTPã®äœ¿çšã¯æ¡åŒµFTPã«äŸåããŸã
ã³ãã³ãSIZEã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Rã-remote-time
䜿çšãããšãcurlã¯ãªã¢ãŒãã®ã¿ã€ã ã¹ã¿ã³ããææ¡ããããšããŸã
ãã¡ã€ã«ãäœæãããããå©çšå¯èœãªå Žåã¯ãããŒã«ã«ãã¡ã€ã«ã«åãã¿ã€ã ã¹ã¿ã³ããååŸãããŸãã
-ã©ã³ãã ãã¡ã€ã«
ïŒSSLïŒã©ã³ãã ãšèŠãªããããã®ãå«ããã¡ã€ã«ãžã®ãã¹åãæå®ããŸã
ããŒã¿ã ãã®ããŒã¿ã¯ãSSLæ¥ç¶çšã®ã©ã³ãã ãšã³ãžã³ãã·ãŒãããããã«äœ¿çšãããŸãã ãåç §ããŠãã ãã
--egd-ãã¡ã€ã« ãªãã·ã§ã³ãéžæããŸãã
--rawïŒHTTPïŒäœ¿çšãããšãã³ã³ãã³ããŸãã¯è»¢éã®ãã¹ãŠã®å éšHTTPãã³ãŒããç¡å¹ã«ãªããŸã
ãšã³ã³ãŒãã£ã³ã°ãè¡ãã代ããã«å€æŽããã«çã§æž¡ããŸãã ïŒ7.16.2ã§è¿œå ïŒ
-ãªã¢ãŒãå-ãã¹ãŠ
ãã®ãªãã·ã§ã³ã¯ãæå®ããããã¹ãŠã®URLã®ããã©ã«ãã®ã¢ã¯ã·ã§ã³ãå€æŽããŠãããããåŠçãããããã«ããŸã
-Oã -ãªã¢ãŒãå ããããã«äœ¿çšãããŸããã ãããã£ãŠããããç¡å¹ã«ãããå Žåã¯
åŸã®ç¹å®ã®URL -ãªã¢ãŒãå-ãã¹ãŠ 䜿çšãããŠããå Žåã¯ãã-o-ããŸãã¯ã䜿çšããå¿ èŠããããŸã - çªå·-
ãªã¢ãŒãåã ïŒ7.19.0ã§è¿œå ïŒ
- 解決
ç¹å®ã®ãã¹ããšããŒãã®ãã¢ã«ã«ã¹ã¿ã ã¢ãã¬ã¹ãæå®ããŸãã ããã䜿çšããŠãããªãã¯ããããšãã§ããŸã
æå®ãããã¢ãã¬ã¹ã䜿çšããŠcurlãªã¯ãšã¹ããäœæãããã以å€ã®å Žåã¯é²æ¢ããŸã
䜿çšãããé垞解決ãããã¢ãã¬ã¹ã äžçš®ã®ãããèããŠãã ãã /etc/hosts 代æ¿æ¡
ã³ãã³ãã©ã€ã³ã§æäŸãããŸãã ããŒãçªå·ã¯ãã«äœ¿çšãããçªå·ã§ããå¿ èŠããããŸã
ãã¹ãã䜿çšãããç¹å®ã®ãããã³ã«ã ããã¯ã次ã®å Žåã«è€æ°ã®ãšã³ããªãå¿ èŠã§ããããšãæå³ããŸã
åããã¹ãã§ãããç°ãªãããŒãã®ã¢ãã¬ã¹ãæäŸãããã
ãã®ãªãã·ã§ã³ã¯ã解決ããå€ãã®ãã¹ãåãè¿œå ããããã«äœåºŠã䜿çšã§ããŸãã
ïŒ7.21.3ã§è¿œå ïŒ
- ãªãã©ã€
curlã転éãå®è¡ããããšãããšãã«äžæçãªãšã©ãŒãè¿ãããå Žåã
ãããããåã«ããã®åæ°ãåè©Šè¡ããŠãã ããã æ°å€ã0ã«èšå®ãããšãcurlãå®è¡ãããŸã
åè©Šè¡ã¯ãããŸããïŒãããããã©ã«ãã§ãïŒã äžæçãªãšã©ãŒãšã¯ãã¿ã€ã ã¢ãŠããFTPã®ãããããæå³ããŸã
4xxå¿çã³ãŒããŸãã¯HTTP5xxå¿çã³ãŒãã
curlã転éãåè©Šè¡ããããšãããšãæåã«XNUMXç§éåŸ æ©ãã次ã«
ä»åŸã®ãã¹ãŠã®åè©Šè¡ã§ã¯ã10åã«éãããŸã§åŸ æ©æéãXNUMXåã«ãªããŸã
ããã¯ãæ®ãã®åè©Šè¡éã®é 延ã«ãªããŸãã ã䜿çšã㊠- ãªãã©ã€-
é ããã ãã®ææ°ããã¯ãªãã¢ã«ãŽãªãºã ãç¡å¹ã«ããŸãã ãåç §ããŠãã ãã --åè©Šè¡æ倧æé ããž
åè©Šè¡ã«èš±å¯ãããåèšæéãå¶éããŸãã ïŒ7.12.3ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-åè©Šè¡-é 延
転éã倱æããå Žåãååè©Šè¡ã®åã«ããã®æéã ãcurlãã¹ãªãŒãç¶æ ã«ããŸã
äžæçãªãšã©ãŒãçºçããŸãïŒããã©ã«ãã®ããã¯ãªãæéã¢ã«ãŽãªãºã ã
åè©Šè¡ïŒã ãã®ãªãã·ã§ã³ã¯ã次ã®å Žåã«ã®ã¿èå³æ·±ããã®ã§ã - ãªãã©ã€ ã䜿çšãããŸãã ãããèšå®ãã
ãŒããŸã§ã®é 延ã«ãããcurlã¯ããã©ã«ãã®ããã¯ãªãæéã䜿çšããŸãã ïŒ7.12.3ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--retry-max-time
åè©Šè¡ã¿ã€ããŒã¯ãæåã®è»¢éè©Šè¡ã®åã«ãªã»ãããããŸãã åè©Šè¡ã¯æ¬¡ã®ããã«è¡ãããŸã
éåžžïŒãåç §ïŒ - ãªãã©ã€ïŒã¿ã€ããŒããã®æå®ãããå¶éã«éããŠããªãéãã ç¥ãã
ã¿ã€ããŒãå¶éã«éããŠããªãå Žåã¯ããªã¯ãšã¹ããè¡ããã
å®è¡ãããšããã®æå®ã®æéããé·ããããå ŽåããããŸãã ã·ã³ã°ã«ãå¶éããã«ã¯
ãªã¯ãšã¹ãã®æ倧æéãäœ¿çš -NSã --æ倧æéã ã¿ã€ã ã¢ãŠãããªãããã«ããã«ã¯ããã®ãªãã·ã§ã³ããŒãã«èšå®ããŸã
åè©Šè¡ããŸãã ïŒ7.12.3ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-sã-silent
ãµã€ã¬ã³ãã¢ãŒããŸãã¯ã¯ã¯ã€ãšããã¢ãŒãã ããã°ã¬ã¹ã¡ãŒã¿ãŒããšã©ãŒã¡ãã»ãŒãžã衚瀺ããªãã§ãã ããã ã«ãŒã«ãäœã
ãã¥ãŒãã ããã§ããããªããèŠæ±ããããŒã¿ãåºåããŸãã
ãªãã€ã¬ã¯ãããªãéããterminal / stdoutã
--sasl-ir
SASLèªèšŒã§åæå¿çãæå¹ã«ããŸãã ïŒ7.31.0ã§è¿œå ïŒ
- ãµãŒãã¹å
ãã®ãªãã·ã§ã³ã䜿çšãããšãSPNEGOã®ãµãŒãã¹åãå€æŽã§ããŸãã
äŸïŒ-negotiate - ãµãŒãã¹å sockdã¯sockd / server-nameã䜿çšããŸãã ïŒã«è¿œå
7.43.0ïŒã
-Sã-show-error
ãšäžç·ã«äœ¿çšããå Žå -s 倱æããå Žåãcurlã«ãšã©ãŒã¡ãã»ãŒãžã衚瀺ãããŸãã
--sslïŒFTPãPOP3ãIMAPãSMTPïŒæ¥ç¶ã«SSL / TLSã䜿çšããŠã¿ãŠãã ããã éã«æ»ããŸã
ãµãŒããŒãSSL / TLSããµããŒãããŠããªãå Žåã¯ãå®å šãªæ¥ç¶ã ãåç §ããŠãã ãã --ftp-ssl-
ã³ã³ãããŒã« ãš --ssl-reqd å¿ èŠãªæå·åã®ããŸããŸãªã¬ãã«ã«å¯Ÿå¿ããŸãã ïŒã«è¿œå
7.20.0ïŒ
ãã®ãªãã·ã§ã³ã¯ã以å㯠--ftp-ssl ïŒ7.11.0ã§è¿œå ïŒã ãã®ãªãã·ã§ã³åã¯
åŒãç¶ã䜿çšãããŸãããå°æ¥ã®ããŒãžã§ã³ã§åé€ãããäºå®ã§ãã
--ssl-reqd
ïŒFTPãPOP3ãIMAPãSMTPïŒæ¥ç¶ã«ã¯SSL / TLSãå¿ èŠã§ãã ãçµäºããŸã
ãµãŒããŒãSSL / TLSããµããŒãããŠããªãå Žåã®æ¥ç¶ã ïŒ7.20.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ã¯ã以å㯠--ftp-ssl-reqd ïŒ7.15.5ã§è¿œå ïŒã ãã®ãªãã·ã§ã³
nameã¯åŒãç¶ã䜿çšã§ããŸãããå°æ¥ã®ããŒãžã§ã³ã§åé€ãããäºå®ã§ãã
--ssl-allow-ããŒã¹ã
ïŒSSLïŒãã®ãªãã·ã§ã³ã¯ãSSL3ã®ã»ãã¥ãªãã£äžã®æ¬ é¥ãåé¿ããªãããã«curlã«æ瀺ããŸãã
BEASTãšããŠç¥ãããTLS1.0ãããã³ã«ã ãã®ãªãã·ã§ã³ã䜿çšããªãå ŽåãSSLã¬ã€ã€ãŒã¯
äžéšã®å€ãSSLãšã®çžäºéçšæ§ã®åé¡ãåŒãèµ·ããããšãç¥ãããŠããåé¿ç
å®è£ ã èŠåïŒãã®ãªãã·ã§ã³ã¯SSLã»ãã¥ãªãã£ãç·©ããããã䜿çšããããšã«ãã
ããªãããŸãã«ãããæ±ããæã ïŒ7.25.0ã§è¿œå ïŒ
--ssl-no-åãæ¶ã
ïŒWinSSLïŒãã®ãªãã·ã§ã³ã¯ãcurlã«èšŒææžå€±å¹ãã§ãã¯ãç¡å¹ã«ããããã«æ瀺ããŸãã èŠåïŒ
ãã®ãªãã·ã§ã³ã¯SSLã»ãã¥ãªãã£ãç·©ãããã®ãã©ã°ã䜿çšããããšã§æ£ç¢ºã«èŠæ±ããŸã
ããã ïŒ7.44.0ã§è¿œå ïŒ
--socks4
æå®ãããSOCKS4ãããã·ã䜿çšããŸãã ããŒãçªå·ãæå®ãããŠããªãå Žåã¯ã
ããŒã1080ã§ãïŒ7.15.2ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -NSã - ãããã·ãŒãçžäºã«
æä»çã
7.21.7以éãsocks4ãããã·ãæå®ã§ããããããã®ãªãã·ã§ã³ã¯äžèŠã§ãã
-NSã - ãããã·ãŒ socks4ïŒ//ãããã³ã«ãã¬ãã£ãã¯ã¹ã䜿çšããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--socks4a
æå®ãããSOCKS4aãããã·ã䜿çšããŸãã ããŒãçªå·ãæå®ãããŠããªãå Žåã¯ã
ããŒã1080ã§ãïŒ7.18.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -NSã - ãããã·ãŒãçžäºã«
æä»çã
7.21.7以éãsocks4aãããã·ãæå®ã§ããããããã®ãªãã·ã§ã³ã¯äžèŠã§ãã
-NSã - ãããã·ãŒ socks4aïŒ//ãããã³ã«ãã¬ãã£ãã¯ã¹ã䜿çšããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--socks5-ãã¹ãå
æå®ãããSOCKS5ãããã·ã䜿çšããŸãïŒãããŠãããã·ã«ãã¹ãåã解決ãããŸãïŒã ã®å Žå
ããŒãçªå·ã¯æå®ãããŠããããããŒã1080ã§æ³å®ãããŠããŸããïŒ7.18.0ã§è¿œå ïŒ
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -NSã - ãããã·ãŒãçžäºã«
æä»çã
7.21.7以éãsocks5ãã¹ãåãæå®ã§ããããããã®ãªãã·ã§ã³ã¯äžèŠã§ãã
ãããã· -NSã - ãããã·ãŒ socks5hïŒ//ãããã³ã«ãã¬ãã£ãã¯ã¹ã䜿çšããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã ïŒãã®ãªãã·ã§ã³ã¯
以åã¯èª€ã£ãŠææžåãããçªå·ãè¿œå ãããŠããªã--socksãšããŠäœ¿çšãããŠããŸãããïŒ
--socks5
æå®ãããSOCKS5ãããã·ã䜿çšããŸããããã¹ãåãããŒã«ã«ã§è§£æ±ºããŸãã ããŒãã®å Žå
çªå·ã¯æå®ãããŠããŸãããããŒã1080ã§æ³å®ãããŠããŸãã
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -NSã - ãããã·ãŒãçžäºã«
æä»çã
7.21.7以éãsocks5ãããã·ãæå®ã§ããããããã®ãªãã·ã§ã³ã¯äžèŠã§ãã
-NSã - ãããã·ãŒ socks5ïŒ//ãããã³ã«ãã¬ãã£ãã¯ã¹ã䜿çšããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã ïŒãã®ãªãã·ã§ã³ã¯
以åã¯èª€ã£ãŠææžåãããçªå·ãè¿œå ãããŠããªã--socksãšããŠäœ¿çšãããŠããŸãããïŒ
ãã®ãªãã·ã§ã³ïŒããã³ --éŽäž4ïŒIPV6ãFTPSããŸãã¯LDAPã§ã¯æ©èœããŸããã
--socks5-gssapi-service
socksãµãŒããŒã®ããã©ã«ãã®ãµãŒãã¹åã¯rcmd / server-fqdnã§ãã ãã®ãªãã·ã§ã³ã«ããã
ããªãã¯ãããå€æŽããŸãã
äŸïŒ-socks5ãããã·å --socks5-gssapi-service sockdã¯sockd / proxyã䜿çšããŸã-
name --socks5 ãããã·å --socks5-gssapi-service sockd / real-nameã¯
ãããã·åãããªã³ã·ãã«åãšäžèŽããªãå Žåã®sockd / real-nameã
ïŒ7.19.4ã§è¿œå ïŒã
--socks5-gssapi-nec
GSS-APIããŽã·ãšãŒã·ã§ã³ã®äžéšãšããŠãä¿è·ã¢ãŒããããŽã·ãšãŒããããŸãã RFC1961ã«ãããš
ã»ã¯ã·ã§ã³4.3 / 4.4ã§ã¯ä¿è·ããå¿ èŠããããŸãããNECãªãã¡ã¬ã³ã¹å®è£
ã§ã¯ãªãã ãªãã·ã§ã³ --socks5-gssapi-nec ä¿è·ãããŠããªã亀æãèš±å¯ããŸã
ä¿è·ã¢ãŒãã®ããŽã·ãšãŒã·ã§ã³ã ïŒ7.19.4ã§è¿œå ïŒã
--stderr
代ããã«ãstderrãžã®ãã¹ãŠã®æžã蟌ã¿ãæå®ããããã¡ã€ã«ã«ãªãã€ã¬ã¯ãããŸãã ãã¡ã€ã«åã
ãã¬ãŒã³ '-'ã代ããã«stdoutã«æžã蟌ãŸããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-tã-telnet-option
ãªãã·ã§ã³ãtelnetãããã³ã«ã«æž¡ããŸãã ãµããŒããããŠãããªãã·ã§ã³ã¯æ¬¡ã®ãšããã§ãã
TTYPE = 端æ«ã¿ã€ããèšå®ããŸãã
XDISPLOC = X衚瀺äœçœ®ãèšå®ããŸãã
NEW_ENV = ç°å¢å€æ°ãèšå®ããŸãã
-Tã-upload-file
ããã«ãããæå®ããããŒã«ã«ãã¡ã€ã«ããªã¢ãŒãURLã«è»¢éãããŸãã ãã¡ã€ã«éšåããªãå Žå
æå®ãããURLã§ãCurlã¯ããŒã«ã«ãã¡ã€ã«åãè¿œå ããŸãã 䜿çšããå¿ èŠãããããšã«æ³šæããŠãã ãã
æåŸã®ãã£ã¬ã¯ããªã®æ«å°Ÿã®/ã¯ããã¡ã€ã«ããªãããšãCurlã«å®éã«èšŒæããŸã
nameãŸãã¯curlã¯ãæåŸã®ãã£ã¬ã¯ããªåããªã¢ãŒããã¡ã€ã«åã§ãããšèŠãªããŸãã
䜿çšããã ããã«ãããã¢ããããŒãæäœã倱æããå¯èœæ§ããããŸãã ããã䜿çšããå Žå
HTTPïŒSïŒãµãŒããŒã®å ŽåãPUTã³ãã³ãã䜿çšãããŸãã
ç¹å®ã®ãã¡ã€ã«ã®ä»£ããã«stdinã䜿çšããã«ã¯ããã¡ã€ã«åã-ãïŒåäžã®ããã·ã¥ïŒã䜿çšããŸãã
ãŸãã¯ããã¡ã€ã«åããã ïŒåäžã®ããªãªãïŒã-ãã®ä»£ããã«æå®ã§ããŸã
éããããã³ã°ã¢ãŒãã§stdinã䜿çšããŠãstdinã®å®è¡äžã«ãµãŒããŒåºåãèªã¿åããããã«ããŸãã
ã¢ããããŒããããŸããã
ã³ãã³ãã©ã€ã³ã§URLããšã«XNUMXã€ã®-Tãæå®ã§ããŸãã å-T + URLãã¢
äœãã©ãã«ã¢ããããŒãããããæå®ããŸãã ã«ãŒã«ã¯-Tã®ãã°ããã³ã°ãããµããŒãããŸã
åŒæ°ãããã¯ãã䜿çšããŠè€æ°ã®ãã¡ã€ã«ãXNUMXã€ã®URLã«ã¢ããããŒãã§ããããšãæå³ããŸãã
次ã®ããã«ãURLã§ãµããŒããããŠããã®ãšåãURLã°ããã³ã°ã¹ã¿ã€ã«ïŒ
curl -T "{file1ãfile2}" http://www.uploadtothissite.com
ãããã¯
curl -T "img [1-1000] .png" Loading = "lazy" ftp://ftp.picturemania.com/upload/
--tcp-nodelay
TCP_NODELAYãªãã·ã§ã³ããªã³ã«ããŸãã ãåç §ããŠãã ãã curl_easy_setopt(3) 詳现ã«ã€ããŠã¯manããŒãž
ãã®ãªãã·ã§ã³ã«ã€ããŠã ïŒ7.11.2ã§è¿œå ïŒ
--tftp-blksize
ïŒTFTPïŒTFTP BLKSIZEãªãã·ã§ã³ãèšå®ããŸãïŒ> 512ã§ããå¿ èŠããããŸãïŒã ããã¯ã«ãŒã«ãããããã¯ãµã€ãºã§ã
TFTPãµãŒããŒãšã®éã§ããŒã¿ã転éãããšãã«äœ¿çšããããšããŸãã ããã©ã«ãã§ã¯512
ãã€ãã䜿çšãããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
ïŒ7.20.0ã§è¿œå ïŒ
--tlsauthtype
TLSèªèšŒã¿ã€ããèšå®ããŸãã çŸåšããµããŒããããŠãããªãã·ã§ã³ã¯ãSRPãã®ã¿ã§ãã
TLS-SRPïŒRFC5054ïŒã ããã --tlsuser ãš --tlsãã¹ã¯ãŒã æå®ãããŠããŸãã --tlsauthtype
ããã§ãªãå Žåããã®ãªãã·ã§ã³ã¯ããã©ã«ãã§ãSRPãã«ãªããŸãã ïŒ7.21.4ã§è¿œå ïŒ
--tlspassword
ã§æå®ãããTLSèªèšŒæ¹æ³ã§äœ¿çšãããã¹ã¯ãŒããèšå®ããŸã
--tlsauthtypeã ãããå¿ èŠã§ã --tlsuser ãŸããèšå®ãããŸãã ïŒ7.21.4ã§è¿œå ïŒ
--tlsuser
ã§æå®ãããTLSèªèšŒæ¹æ³ã§äœ¿çšãããŠãŒã¶ãŒåãèšå®ããŸã
--tlsauthtypeã ãããå¿ èŠã§ã --tlsãã¹ã¯ãŒã ãŸããèšå®ãããŸãã ïŒ7.21.4ã§è¿œå ïŒ
--tlsv1.0
ïŒSSLïŒãªã¢ãŒãTLSãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«TLSããŒãžã§ã³1.0ã䜿çšããããã«åŒ·å¶ããŸãã
ïŒ7.34.0ã§è¿œå ïŒ
--tlsv1.1
ïŒSSLïŒãªã¢ãŒãTLSãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«TLSããŒãžã§ã³1.1ã䜿çšããããã«åŒ·å¶ããŸãã
ïŒ7.34.0ã§è¿œå ïŒ
--tlsv1.2
ïŒSSLïŒãªã¢ãŒãTLSãµãŒããŒãšããŽã·ãšãŒããããšãã«ãcurlã«TLSããŒãžã§ã³1.2ã䜿çšããããã«åŒ·å¶ããŸãã
ïŒ7.34.0ã§è¿œå ïŒ
--tr-ãšã³ã³ãŒãã£ã³ã°
ïŒHTTPïŒã¢ã«ãŽãªãºã ã®XNUMXã€ã䜿çšããŠãå§çž®ãããTransfer-Encodingå¿çãèŠæ±ããŸã
curlã¯ããŒã¿ããµããŒãããåä¿¡äžã«ããŒã¿ã解åããŸãã
ïŒ7.21.6ã§è¿œå ïŒ
- çè·¡
説æãå«ãããã¹ãŠã®åä¿¡ããŒã¿ãšéä¿¡ããŒã¿ã®å®å šãªãã¬ãŒã¹ãã³ããæå¹ã«ããŸã
æ å ±ãæå®ãããåºåãã¡ã€ã«ã«ã ãã¡ã€ã«åãšããŠã-ãã䜿çšããŠãåºåãéä¿¡ããŸã
stdoutã«ã
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -vã -詳现 or --trace-ascii.
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--trace-ascii
説æãå«ãããã¹ãŠã®åä¿¡ããŒã¿ãšéä¿¡ããŒã¿ã®å®å šãªãã¬ãŒã¹ãã³ããæå¹ã«ããŸã
æ å ±ãæå®ãããåºåãã¡ã€ã«ã«ã ãã¡ã€ã«åãšããŠã-ãã䜿çšããŠãåºåãéä¿¡ããŸã
stdoutã«ã
ããã¯éåžžã«äŒŒãŠããŸã - çè·¡ããã ããXNUMXé²éšåã¯çç¥ãã
ãã³ãã®ASCIIéšåã èªã¿ããããªãå¯èœæ§ã®ããå°ããªåºåã«ãªããŸã
èšç·ŽãåããŠããªã人éã
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã -vã -詳现 or - çè·¡.
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-- ãã¬ãŒã¹æé
ã«ãŒã«ã衚瀺ããåãã¬ãŒã¹ãŸãã¯åé·è¡ã«ã¿ã€ã ã¹ã¿ã³ããä»å ããŸãã ïŒã«è¿œå
7.14.0ïŒ
--unix-ãœã±ãã
ïŒHTTPïŒãããã¯ãŒã¯ã䜿çšãã代ããã«ããã®Unixãã¡ã€ã³ãœã±ãããä»ããŠæ¥ç¶ããŸãã
ïŒ7.40.0ã§è¿œå ïŒ
-uã-user
ãµãŒããŒèªèšŒã«äœ¿çšãããŠãŒã¶ãŒåãšãã¹ã¯ãŒããæå®ããŸãã ãªãŒããŒã©ã€ã -NSã
--netrc ãš --netrc-ãªãã·ã§ã³.
ãŠãŒã¶ãŒåãæå®ããã ãã®å Žåãcurlã¯ãã¹ã¯ãŒãã®å ¥åãæ±ããŸãã
ãŠãŒã¶ãŒåãšãã¹ã¯ãŒãã¯æåã®ã³ãã³ã§åå²ãããŠããããã
ãã®ãªãã·ã§ã³ã§ã¯ããŠãŒã¶ãŒåã«ã³ãã³ã䜿çšããããšã¯ã§ããŸããã ãã¹ã¯ãŒãã¯ã
ãŸã ã
WindowsããŒã¹ã®ãµãŒããŒã§KerberosV5ã䜿çšããå Žåã¯ãWindowsãå«ããå¿ èŠããããŸã
ãµãŒããŒãæ£åžžã«ååŸããããã®ãŠãŒã¶ãŒåã®ãã¡ã€ã³å
Kerberosãã±ããã ããããªããšãæåã®èªèšŒãã³ãã·ã§ã€ã¯ã倱æããå¯èœæ§ããããŸãã
NTLMã䜿çšããå ŽåããŠãŒã¶ãŒåã¯ããªãã§åã«ãŠãŒã¶ãŒåãšããŠæå®ã§ããŸãã
ããšãã°ãã»ããã¢ããã«åäžã®ãã¡ã€ã³ãšãã©ã¬ã¹ããããå Žåã¯ããã¡ã€ã³ã
ãã¡ã€ã³åãæå®ããã«ã¯ãããŠã³ã¬ãã«ã®ãã°ãªã³åãŸãã¯UPNïŒãŠãŒã¶ãŒããªã³ã·ãã«ïŒã®ããããã䜿çšããŸã
ååïŒãã©ãŒãããã ããšãã°ãEXAMPLE \ userãš [ã¡ãŒã«ä¿è·] ã
Windows SSPI察å¿ã®curlãã€ããªã䜿çšããKerberos V5ãå®è¡ããå ŽåãããŽã·ãšãŒãã
NTLMãŸãã¯ãã€ãžã§ã¹ãèªèšŒã®å Žåãcurlã«ãŠãŒã¶ãŒåãéžæããããã«æ瀺ãã
ãã®ãªãã·ã§ã³ã§åäžã®ã³ãã³ãæå®ããããšã«ãããç°å¢ããã®ãã¹ã¯ãŒãïŒ "-u
ïŒ "ã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Uã-proxy-user
ãããã·èªèšŒã«äœ¿çšãããŠãŒã¶ãŒåãšãã¹ã¯ãŒããæå®ããŸãã
Windows SSPI察å¿ã®curlãã€ããªã䜿çšããããŽã·ãšãŒããŸãã¯NTLMã®ãããããå®è¡ããå Žå
èªèšŒåŸãcurlã«ãŠãŒã¶ãŒåãšãã¹ã¯ãŒããéžæããããã«æ瀺ã§ããŸãã
ãã®ãªãã·ã§ã³ã-UïŒãã䜿çšããŠåäžã®ã³ãã³ãæå®ããããšã«ãããç°å¢ãèšå®ããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--url
ãã§ããããURLãæå®ããŸãã ãã®ãªãã·ã§ã³ã¯ãURLãæå®ããå Žåã«æã䟿å©ã§ãã
æ§æãã¡ã€ã«å ã
æå®ãããURLã«ã¹ããŒã åïŒãhttpïŒ//ãããftpïŒ//ããªã©ïŒããªãå Žåã¯ã
curlã¯ããã¹ãã«åºã¥ããŠæšæž¬ããŸãã æãå€åŽã®ãµããã¡ã€ã³åãäžèŽããå Žå
DICTãFTPãIMAPãLDAPãPOP3ããŸãã¯SMTPã®å Žåããã®ãããã³ã«ã䜿çšãããŸãããã以å€ã®å Žåã¯HTTPã䜿çšãããŸãã
䜿çšãããŸãã 7.45.0以éãããã©ã«ãã®ãããã³ã«ãèšå®ããããšã§æšæž¬ãç¡å¹ã«ã§ããŸãã
--ãããããã©ã«ã 詳现ã«ã€ããŠã¯ã
ãã®ãªãã·ã§ã³ã¯äœåºŠã§ã䜿çšã§ããŸãã ãã®URLãæžã蟌ãŸããå Žæãå¶åŸ¡ããã«ã¯ã
äœ¿çš -oã - åºå ãŸã㯠-Oã -ãªã¢ãŒãå ãªãã·ã§ã³ã
-vã-verbose
æäœäžã¯ãããåé·ã§ãããã¹ãã«ãªããŸãã ãããã°ãšè¡šç€ºã«äŸ¿å©ã§ã
ãå éšãã§äœãèµ·ãã£ãŠããã®ãã '>'ã§å§ãŸãè¡ã¯ãéä¿¡ããããããããŒããŒã¿ããæå³ããŸã
curlã®å Žåãã<ãã¯ãéåžžã®å Žåã«é衚瀺ã«ãªã£ãŠãããcurlãåä¿¡ãããããããŒããŒã¿ããæå³ããŸãã
'*'ã§å§ãŸãè¡ã¯ãcurlã«ãã£ãŠæäŸãããè¿œå æ å ±ãæå³ããŸãã
åºåã«HTTPããããŒã®ã¿ãå¿ èŠãªå Žåã¯ã -ç§ã - å«ã ãããããŸãã
ããªããæ¢ããŠãããªãã·ã§ã³ã
ãã®ãªãã·ã§ã³ã§ãååãªè©³çŽ°ãåŸãããªããšæãããå Žåã¯ã䜿çšãæ€èšããŠãã ãã
- çè·¡ or --trace-ascii ã代ããã«ã䜿ããã ããã
ãã®ãªãã·ã§ã³ã¯ã以åã®äœ¿çšãäžæžãããŸã --trace-ascii or - çè·¡.
ã -sã - éãã ã«ãŒã«ãéãã«ããŸãã
-wã-write-out
転éãå®äºããåŸãstdoutã«curl衚瀺æ å ±ãäœæããŸãã ãã©ãŒãããã¯
ä»»æã®æ°ã®å€æ°ãšæ··åããããã¬ãŒã³ããã¹ããå«ãå¯èœæ§ã®ããæååã ãã©ãŒããã
ãªãã©ã«ã®ãæååããšããŠæå®ããããšããcurlã«ãã©ãŒããããèªã¿åããããããšãã§ããŸãã
ã@filenameããå«ããã¡ã€ã«ãšãäœæããstdinãããã©ãŒããããèªã¿åãããã«curlã«æ瀺ããŸãã
ã@-ãã
åºå圢åŒã«ååšããå€æ°ã¯ãå€ãŸãã¯ããã¹ãã«çœ®ãæããããŸã
以äžã«èª¬æããããã«ããã®ã«ãŒã«ã¯é©åã§ãããšèããŸãã ãã¹ãŠã®å€æ°ã¯æ¬¡ã®ããã«æå®ãããŸã
ïŒ {variable_name}ãããŠéåžžã®ïŒ ãåºåããã«ã¯ããããã%%ãšæžãã ãã§ãã åºåã§ããŸã
\ nã䜿çšããæ¹è¡ã\ rã䜿çšãããã£ãªããžãªã¿ãŒã³ãããã³\ tã䜿çšããã¿ãã¹ããŒã¹ã
泚: ïŒ èšå·ã¯ãwin32ç°å¢ã®ç¹å¥ãªèšå·ã§ãã
ãã®ãªãã·ã§ã³ã䜿çšããå Žåã¯ãïŒ ã®åºçŸåæ°ãXNUMXåã«ããå¿ èŠããããŸãã
䜿çšå¯èœãªå€æ°ã¯æ¬¡ã®ãšããã§ãã
content_type èŠæ±ãããããã¥ã¡ã³ãã®ã³ã³ãã³ãã¿ã€ãïŒååšããå ŽåïŒã
ãã¡ã€ã«å_æå¹
curlãæžãåºãæçµçãªãã¡ã€ã«åã ããã ãã§ã
curlããã¡ã€ã«ã«æžã蟌ãããã«æ瀺ãããå Žåã«æå³ããããŸã -ãªã¢ãŒãå
or - åºå ãªãã·ã§ã³ã ãšçµã¿åãããŠæã䟿å©ã§ã
-- ãªã¢ãŒãããããŒå ãªãã·ã§ã³ã ïŒ7.25.1ã§è¿œå ïŒ
ftp_entry_path ãªã¢ãŒãFTPã«ãã°ãªã³ãããšãæåã®ãã¹ã®ã«ãŒã«ãçºçããŸãã
ãµãŒãã ïŒ7.15.4ã§è¿œå ïŒ
http_ã³ãŒã æåŸã«ååŸããããšãã«èŠã€ãã£ãæ°å€å¿çã³ãŒã
HTTPïŒSïŒãŸãã¯FTPïŒsïŒè»¢éã 7.18.2ã§ã¯ãšã€ãªã¢ã¹ å¿çã³ãŒã ãŸãã
åãæ å ±ã衚瀺ããããã«è¿œå ãããŸããã
http_connect æåŸã®å¿çã§èŠã€ãã£ãæ°å€ã³ãŒãïŒ
ãããã·ïŒãcurlCONNECTãªã¯ãšã¹ãã«éä¿¡ããŸãã ïŒ7.12.4ã§è¿œå ïŒ
local_ip æè¿è¡ãããæ¥ç¶ã®ããŒã«ã«ãšã³ãã®IPã¢ãã¬ã¹
-IPv4ãŸãã¯IPv6ã®ããããã«ãªããŸãïŒ7.29.0ã§è¿œå ïŒ
ããŒã«ã«ããŒã æè¿è¡ãããæ¥ç¶ã®ããŒã«ã«ããŒãçªå·ïŒ
7.29.0ïŒ
æ¥ç¶æ° æè¿ã®è»¢éã§è¡ãããæ°ããæ¥ç¶ã®æ°ã ïŒã«è¿œå
7.12.3ïŒ
ãªãã€ã¬ã¯ãæ° ãªã¯ãšã¹ãã§è¿œè·¡ããããªãã€ã¬ã¯ãã®æ°ã ïŒã«è¿œå
7.12.3ïŒ
redirect_url ãªãã€ã¬ã¯ãã«åŸãããã«-Lãªãã§HTTPãªã¯ãšã¹ããè¡ãããå Žåãããã¯
å€æ°ã¯å®éã®URLããªãã€ã¬ã¯ãã§è¡šç€ºããŸã ã§ããã ã«é£ããŠè¡ã£ãŠãã ããã
ïŒ7.18.2ã§è¿œå ïŒ
remote_ip æè¿è¡ãããæ¥ç¶ã®ãªã¢ãŒãIPã¢ãã¬ã¹-
IPv4ãŸãã¯IPv6ã®ããããïŒ7.29.0ã§è¿œå ïŒ
ãªã¢ãŒãããŒã æè¿è¡ãããæ¥ç¶ã®ãªã¢ãŒãããŒãçªå·ïŒè¿œå
7.29.0ã§ïŒ
ãµã€ãº_ããŠã³ããŒã ããŠã³ããŒãããããã€ãã®ç·æ°ã
ãµã€ãºããã㌠ããŠã³ããŒããããããããŒã®åèšãã€ãæ°ã
ãµã€ãºãªã¯ãšã¹ã HTTPãªã¯ãšã¹ãã§éä¿¡ããããã€ãã®ç·æ°ã
ãµã€ãº_ã¢ããããŒã ã¢ããããŒãããããã€ãã®ç·æ°ã
é床_ããŠã³ããŒã å®å šã«æž¬å®ãããã«ãŒã«ã®å¹³åããŠã³ããŒãé床
ããŠã³ããŒãã XNUMXç§ãããã®ãã€ãæ°ã
ã¹ããŒã_ã¢ããããŒã å®å šãªã¢ããããŒãã§ã«ãŒã«ã枬å®ããå¹³åã¢ããããŒãé床ã
XNUMXç§ãããã®ãã€ãæ°ã
ssl_verify_result
ã ã£ãSSLãã¢èšŒææžæ€èšŒã®çµæ
èŠæ±ãããŸããã 0ã¯ãæ€èšŒãæåããããšãæå³ããŸãã ïŒã«è¿œå
7.19.0ïŒ
time_appconnect
éå§ããSSL / SSHãªã©ãŸã§ã®æéïŒç§åäœïŒ
ãªã¢ãŒããã¹ããžã®æ¥ç¶/ãã³ãã·ã§ã€ã¯ãå®äºããŸããã ïŒã«è¿œå
7.19.0ïŒ
æé_æ¥ç¶ éå§ããTCPæ¥ç¶ãŸã§ã«ããã£ãæéïŒç§åäœïŒ
ãªã¢ãŒããã¹ãïŒãŸãã¯ãããã·ïŒãžã®æ¥ç¶ãå®äºããŸããã
time_namelookup
éå§ããååãŸã§ã®æéïŒç§åäœïŒ
解決ãå®äºããŸããã
time_pretransfer
éå§ãããã¡ã€ã«è»¢éãŸã§ã®æéïŒç§åäœïŒ
ã¡ããã©å§ãŸã£ããšããã ã£ãã ããã«ã¯ããã¹ãŠã®è»¢éåã³ãã³ããš
ç¹å®ã®ãããã³ã«ã«åºæã®ããŽã·ãšãŒã·ã§ã³
é¢äžããã
æéãªãã€ã¬ã¯ã ååãå«ããã¹ãŠã®ãªãã€ã¬ã¯ãæé ã«ããã£ãæéïŒç§åäœïŒ
ã«ãã¯ã¢ãããæ¥ç¶ãäºå転éãããã³ãã¡ã€ãã«åã®è»¢é
ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ãããŸããã time_redirectã¯å®å šãªå®è¡ã瀺ããŸã
è€æ°ã®ãªãã€ã¬ã¯ãã®æéã ïŒ7.12.3ã§è¿œå ïŒ
time_starttransfer
éå§ããæåã®ãã€ããŸã§ã«ããã£ãæéïŒç§åäœïŒ
転éãããããšããŠããŸããã ããã«ã¯ãtime_pretransferãš
ãŸãããµãŒããŒãçµæãèšç®ããããã«å¿ èŠãªæéã
æé_åèš å®å šãªæäœãç¶ç¶ããåèšæéïŒç§åäœïŒã æé
ããªç§ã®è§£å床ã§è¡šç€ºãããŸãã
url_å¹æç æåŸã«ãã§ãããããURLã ããã¯ã次ã®å Žåã«æãæå³ããããŸã
curlã«å ŽæïŒããããŒã«åŸãããã«æ瀺ããŸããã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-xã-proxy <[protocolïŒ//] [userïŒpassword @] proxyhost [ïŒport]>
æå®ããããããã·ã䜿çšããŸãã
ãããã·æååã¯protocolïŒ//ãã¬ãã£ãã¯ã¹ã§æå®ããŠã代æ¿ãæå®ã§ããŸã
ãããã·ãããã³ã«ã socks4ïŒ//ãsocks4aïŒ//ãsocks5ïŒ//ããŸãã¯socks5hïŒ//ã䜿çšããŠãªã¯ãšã¹ãããŸã
䜿çšããç¹å®ã®SOCKSããŒãžã§ã³ã ãããã³ã«ãæå®ãããŠããŸãããhttpïŒ//ããã³ãã®ä»ãã¹ãŠ
HTTPãããã·ãšããŠæ±ãããŸãã ïŒãããã³ã«ã®ãµããŒãã¯curl 7.21.7ã§è¿œå ãããŸããïŒ
ãããã·æååã§ããŒãçªå·ãæå®ãããŠããªãå Žåã¯ã1080ãšèŠãªãããŸãã
ãã®ãªãã·ã§ã³ã¯ã䜿çšãããããã·ãèšå®ããæ¢åã®ç°å¢å€æ°ãäžæžãããŸãã ããã
ãããã·ãèšå®ããç°å¢å€æ°ããããŸãããããã·ãããã«èšå®ã§ããŸãã
ããããªãŒããŒã©ã€ãããŸãã
HTTPãããã·ãä»ããŠå®è¡ããããã¹ãŠã®æäœã¯ãééçã«è¡ãããŸãã
HTTPã«å€æãããŸãã ããã¯ãç¹å®ã®ãããã³ã«åºæã®æäœãããã§ã¯ãªãå¯èœæ§ãããããšãæå³ããŸã
å©çšå¯èœã ããã¯ããããã·ããã³ããªã³ã°ã§ããå Žåã¯åœãŠã¯ãŸããŸããã
ã -NSã --ãããã·ãã³ãã« ãªãã·ã§ã³ãéžæããŸãã
ãããã·æååã§æäŸãããå¯èœæ§ã®ãããŠãŒã¶ãŒãšãã¹ã¯ãŒãã¯ãã«ãã£ãŠãã³ãŒããããURLã§ãã
ã«ãŒã«ã ããã«ãããïŒ 40ã䜿çšããŠ@ãªã©ã®ç¹æ®æåãæž¡ãããæž¡ãããšãã§ããŸãã
ïŒ 3aã®ã³ãã³ã§ã
ãããã·ãã¹ãã¯ããããã·ç°å¢ãšãŸã£ããåãæ¹æ³ã§æå®ã§ããŸã
ãããã³ã«ãã¬ãã£ãã¯ã¹ïŒhttpïŒ//ïŒãåã蟌ã¿ãŠãŒã¶ãŒãªã©ã®å€æ°+
ãã¹ã¯ãŒãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Xã-request
ïŒHTTPïŒHTTPãšéä¿¡ãããšãã«äœ¿çšããã«ã¹ã¿ã ãªã¯ãšã¹ãã¡ãœãããæå®ããŸã
ãµãŒãã ãã以å€ã®å Žåã¯ãæå®ããããªã¯ãšã¹ãã¡ãœãããã¡ãœããã®ä»£ããã«äœ¿çšãããŸã
䜿çšæžã¿ïŒããã©ã«ãã¯GETïŒã 詳现ã«ã€ããŠã¯HTTP1.1ä»æ§ãèªã¿ã
説æã äžè¬çãªè¿œå ã®HTTPãªã¯ãšã¹ãã«ã¯ãPUTãšDELETEãå«ãŸããŸãããé¢é£ããŠããŸã
WebDAVã®ãããªãã¯ãããžãŒã¯ãPROPFINDãCOPYãMOVEãªã©ãæäŸããŸãã
éåžžããã®ãªãã·ã§ã³ã¯å¿ èŠãããŸããã ããããçš®é¡ã®GETãHEADãPOSTãPUTãªã¯ãšã¹ã
ããããå°çšã®ã³ãã³ãã©ã€ã³ãªãã·ã§ã³ã䜿çšããŠåŒã³åºãããŸãã
ãã®ãªãã·ã§ã³ã¯ãHTTPãªã¯ãšã¹ãã§äœ¿çšãããå®éã®åèªã®ã¿ãå€æŽããå€æŽããŸãã
ã«ãŒã«ã®åäœãå€æŽããŸãã ããšãã°ãé©åãªHEADãäœæãããå Žå
ãªã¯ãšã¹ãã-XHEADã䜿çšããã ãã§ã¯äžååã§ãã ããªãã¯äœ¿çšããå¿ èŠããããŸã -ç§ã - é ãªãã·ã§ã³ãéžæããŸãã
-Xã§èšå®ããã¡ãœããæååã¯ããã¹ãŠã®ãªã¯ãšã¹ãã«äœ¿çšãããŸãã
䜿çšäŸ -Lã - äœçœ® ã«ãŒã«ãèµ·ãããªãå Žåãæå³ããªãå¯äœçšãåŒãèµ·ããå¯èœæ§ããããŸã
HTTP30xå¿çã³ãŒãã«åŸã£ãŠèŠæ±ã¡ãœãããå€æŽããŸã-ããã³åæ§ã®ãã®ã
ïŒFTPïŒãã¡ã€ã«ãªã¹ããå®è¡ãããšãã«LISTã®ä»£ããã«äœ¿çšããã«ã¹ã¿ã FTPã³ãã³ããæå®ããŸã
FTPã§ã
ïŒPOP3ïŒLISTãŸãã¯RETRã®ä»£ããã«äœ¿çšããã«ã¹ã¿ã POP3ã³ãã³ããæå®ããŸãã ïŒã«è¿œå
7.26.0ïŒ
ïŒIMAPïŒLISTã®ä»£ããã«äœ¿çšããã«ã¹ã¿ã IMAPã³ãã³ããæå®ããŸãã ïŒ7.30.0ã§è¿œå ïŒ
ïŒSMTPïŒHELPãŸãã¯VRFYã®ä»£ããã«äœ¿çšããã«ã¹ã¿ã SMTPã³ãã³ããæå®ããŸãã ïŒã«è¿œå
7.34.0ïŒ
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
--xattr
åºåããã¡ã€ã«ã«ä¿åããå Žåããã®ãªãã·ã§ã³ã¯curlã«ç¹å®ã®ãã¡ã€ã«ã¡ã¿ããŒã¿ãä¿åããããã«æ瀺ããŸã
æ¡åŒµãã¡ã€ã«å±æ§ã§ã çŸåšãURLã¯xdg.origin.urlã«ä¿åãããŠããŸã
å±æ§ã§ãããHTTPã®å Žåãã³ã³ãã³ãã¿ã€ãã¯mime_typeå±æ§ã«æ ŒçŽãããŸãã ããã
ãã¡ã€ã«ã·ã¹ãã ãæ¡åŒµå±æ§ããµããŒãããŠããªãå ŽåãèŠåãçºè¡ãããŸãã
-yã-speed-time
é床æéäžã«ããŠã³ããŒããé床å¶éãã€ã/ç§ããé ãå Žå
æéäžãããŠã³ããŒãã¯äžæ¢ãããŸãã speed-timeã䜿çšãããŠããå Žåãããã©ã«ãã®é床å¶é
ã§èšå®ããªãéã1ã«ãªããŸã -Y.
ãã®ãªãã·ã§ã³ã¯è»¢éãå¶åŸ¡ãããããäœéæ¥ç¶ãªã©ã«ã¯åœ±é¿ããŸããã
ããªãã®æžå¿µã§ããè©ŠããŠã¿ãŠãã ãã --æ¥ç¶ã¿ã€ã ã¢ãŠã ãªãã·ã§ã³ãéžæããŸãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-Yã-speed-limit
ããŠã³ããŒãããã®æå®ãããé床ïŒãã€ã/ç§ïŒãããé ãå Žå-æé
äžæ¢ãããç§ã é床-æéã¯ã§èšå®ãããŸã -y èšå®ãããŠããªãå Žåã¯30ã§ãã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-zã-time-cond |
ïŒHTTP / FTPïŒæå®ãããæéããåŸã«å€æŽããããã¡ã€ã«ãèŠæ±ãã
æ¥ä»ããŸãã¯ãã®æéããåã«å€æŽãããæ¥ä»ã The ããããšãã§ããŸã
ããããçš®é¡ã®æ¥ä»æååããŸãã¯å éšã®æ¥ä»æååãšäžèŽããªãå Žåã¯ã次ã®ããã«è§£éãããŸãã
ãã¡ã€ã«åãšããå€æŽæ¥ïŒmtimeïŒãååŸããããšããŸã代ããã¯ã èŠã
ã ã«ãŒã«_ã²ããããŒã(3) æ¥ä»åŒã®è©³çŽ°ã«ã€ããŠã¯ãããã¥ã¢ã«ããŒãžãåç §ããŠãã ããã
æ¥ä»åŒãããã·ã¥ââïŒ-ïŒã§éå§ããŠã次ã®ããã¥ã¡ã³ããèŠæ±ããããã«ããŸãã
æå®ãããæ¥æããå€ãå Žåãããã©ã«ãã¯ã
æå®ãããæ¥æã
ãã®ãªãã·ã§ã³ãè€æ°å䜿çšãããšãæåŸã®ãªãã·ã§ã³ã䜿çšãããŸãã
-hã-help
䜿çšæ³ã®ãã«ãã ããã«ãããçŸåšã®ãã¹ãŠã®ã³ãã³ãã©ã€ã³ãªãã·ã§ã³ãç°¡åãªèª¬æãšãšãã«äžèŠ§è¡šç€ºãããŸãã
-Mã-ããã¥ã¢ã«
ããã¥ã¢ã«ã 巚倧ãªãã«ãããã¹ãã衚瀺ããŸãã
-Vã-version
curlãšããã䜿çšããlibcurlããŒãžã§ã³ã«é¢ããæ å ±ã衚瀺ããŸãã
æåã®è¡ã«ã¯ãcurlãlibcurlãããã³ãã®ä»ã®ãµãŒãããŒãã£ã®ãã«ããŒãžã§ã³ãå«ãŸããŠããŸã
å®è¡å¯èœãã¡ã€ã«ã«ãªã³ã¯ãããã©ã€ãã©ãªã
XNUMXè¡ç®ïŒããããã³ã«ïŒãã§å§ãŸãïŒã¯ãlibcurlãå ±åãããã¹ãŠã®ãããã³ã«ã瀺ããŠããŸã
ãµããŒãããã
XNUMXè¡ç®ïŒãæ©èœïŒãã§å§ãŸãïŒã¯ãlibcurlãå ±åããç¹å®ã®æ©èœã瀺ããŠããŸãã
ãªãã¡ãŒã å©çšå¯èœãªæ©èœã¯æ¬¡ã®ãšããã§ãã
IPv6ããã§IPv6ã䜿çšã§ããŸãã
krb4FTPçšã®Krb4ããµããŒããããŠããŸãã
SSL SSLããŒãžã§ã³ã®HTTPSãFTPSãPOP3Sãªã©ã®ããŸããŸãªãããã³ã«ããµããŒããããŠããŸã
ãªã©ããããŸãã
libzHTTPãä»ããå§çž®ãã¡ã€ã«ã®èªå解åããµããŒããããŠããŸãã
NTLMNTLMèªèšŒããµããŒããããŠããŸãã
ãããã°ãã®curlã¯ãDebugã§æ§ç¯ãããlibcurlã䜿çšããŸãã ããã«ãããããå€ãã®ãšã©ãŒè¿œè·¡ãå¯èœã«ãªããŸã
ããã³ã¡ã¢ãªãããã°ãªã©ãcurl-developersã®ã¿ïŒ
AsynchDNS
ãã®curlã¯ãéåæã®åå解決ã䜿çšããŸãã éåæã®ååã®è§£æ±ºã¯æ¬¡ã®ããã«ãªããŸã
c-aresãŸãã¯ã¹ã¬ããåããããªãŸã«ããŒããã¯ãšã³ãã®ããããã䜿çšããŠå®è¡ãããŸãã
SPNEGOSPNEGOèªèšŒããµããŒããããŠããŸãã
largefile
ãã®ã«ãŒã«ã¯ã2GBãè¶ ãã倧ããªãã¡ã€ã«ã®è»¢éããµããŒãããŸãã
IDNãã®ã«ãŒã«ã¯IDNïŒåœéãã¡ã€ã³åïŒããµããŒãããŸãã
GSS-API
GSS-APIããµããŒããããŠããŸãã
SSPISSPIããµããŒããããŠããŸãã
TLS-SRP
SRPïŒSecure Remote PasswordïŒèªèšŒã¯TLSã§ãµããŒããããŠããŸãã
HTTP2 HTTP / 2ãµããŒããçµã¿èŸŒãŸããŠããŸãã
ã¡ã¿ãªã³ã¯
ãã®ã«ãŒã«ã¯MetalinkïŒããŒãžã§ã³3ãš4ïŒRFC 5854ïŒã®äž¡æ¹ïŒããµããŒãããŸãã
ãã©ãŒãšããã·ã¥ã«ã€ããŠèª¬æããŸãã ããå Žåãcurlã¯ãã§ã€ã«ãªãŒããŒã«ãã©ãŒã䜿çšããŸã
ãšã©ãŒã§ãïŒãã¡ã€ã«ãŸãã¯ãµãŒããŒãå©çšã§ããªããªã©ïŒã
onworks.netãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§curlã䜿çšãã