⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curl.1

📁 功能最强大的网络爬虫,希望大家好好学习啊,好好研究啊
💻 1
📖 第 1 页 / 共 5 页
字号:
\fBNote\fP that all operations that are performed over a HTTP proxy willtransparently be converted to HTTP. It means that certain protocol specificoperations might not be available. This is not the case if you can tunnelthrough the proxy, as done with the \fI-p/--proxytunnel\fP option.Starting with 7.14.1, the proxy host can be specified the exact same way asthe proxy environment variables, include protocol prefix (http://) andembedded user + password.If this option is used several times, the last one will be used..IP "-X/--request <command>"(HTTP) Specifies a custom request method to use when communicating with theHTTP server.  The specified request will be used instead of the methodotherwise used (which defaults to GET). Read the HTTP 1.1 specification fordetails and explanations.(FTP)Specifies a custom FTP command to use instead of LIST when doing file listswith ftp.If this option is used several times, the last one will be used..IP "-y/--speed-time <time>"If a download is slower than speed-limit bytes per second during a speed-timeperiod, the download gets aborted. If speed-time is used, the defaultspeed-limit will be 1 unless set with -y.This option controls transfers and thus will not affect slow connects etc. Ifthis is a concern for you, try the \fI--connect-timeout\fP option.If this option is used several times, the last one will be used..IP "-Y/--speed-limit <speed>"If a download is slower than this given speed, in bytes per second, forspeed-time seconds it gets aborted. speed-time is set with -Y and is 30 ifnot set.If this option is used several times, the last one will be used..IP "-z/--time-cond <date expression>"(HTTP) Request a file that has been modified later than the given time anddate, or one that has been modified before that time. The date expression canbe all sorts of date strings or if it doesn't match any internal ones, ittries to get the time from a given file name instead! See the\fIcurl_getdate(3)\fP man pages for date expression details.Start the date expression with a dash (-) to make it request for a documentthat is older than the given date/time, default is a document that is newerthan the specified date/time.If this option is used several times, the last one will be used..IP "--max-redirs <num>"Set maximum number of redirection-followings allowed. If \fI-L/--location\fPis used, this option can be used to prevent curl from following redirections\&"in absurdum". By default, the limit is set to 50 redirections. Set thisoption to -1 to make it limitless.If this option is used several times, the last one will be used..IP "-0/--http1.0"(HTTP) Forces curl to issue its requests using HTTP 1.0 instead of using itsinternally preferred: HTTP 1.1..IP "-1/--tlsv1"(HTTPS)Forces curl to use TSL version 1 when negotiating with a remote TLS server..IP "-2/--sslv2"(HTTPS)Forces curl to use SSL version 2 when negotiating with a remote SSL server..IP "-3/--sslv3"(HTTPS)Forces curl to use SSL version 3 when negotiating with a remote SSL server..IP "--3p-quote"(FTP) Specify arbitrary commands to send to the source server. See the\fI-Q/--quote\fP option for details. (Added in 7.13.0).IP "--3p-url"(FTP) Activates a FTP 3rd party transfer. Specifies the source URL to get afile from, while the "normal" URL will be used as target URL, the file thatwill be written/created.Note that not all FTP server allow 3rd party transfers. (Added in 7.13.0).IP "--3p-user"(FTP) Specify user:password for the source URL transfer. (Added in 7.13.0).IP "-4/--ipv4"If libcurl is capable of resolving an address to multiple IP versions (whichit is if it is ipv6-capable), this option tells libcurl to resolve names toIPv4 addresses only..IP "-6/--ipv6"If libcurl is capable of resolving an address to multiple IP versions (whichit is if it is ipv6-capable), this option tells libcurl to resolve names toIPv6 addresses only..IP "-#/--progress-bar"Make curl display progress information as a progress bar instead of thedefault statistics.If this option is used twice, the second will again disable the progress bar..SH FILES.I ~/.curlrc.RSDefault config file, see \fI-K/--config\fP for details..SH ENVIRONMENT.IP "http_proxy [protocol://]<host>[:port]"Sets proxy server to use for HTTP..IP "HTTPS_PROXY [protocol://]<host>[:port]"Sets proxy server to use for HTTPS..IP "FTP_PROXY [protocol://]<host>[:port]"Sets proxy server to use for FTP..IP "ALL_PROXY [protocol://]<host>[:port]"Sets proxy server to use if no protocol-specific proxy is set..IP "NO_PROXY <comma-separated list of hosts>"list of host names that shouldn't go through any proxy. If set to a asterisk\&'*' only, it matches all hosts..SH EXIT CODESThere exists a bunch of different error codes and their corresponding errormessages that may appear during bad conditions. At the time of this writing,the exit codes are:.IP 1Unsupported protocol. This build of curl has no support for this protocol..IP 2Failed to initialize..IP 3URL malformat. The syntax was not correct..IP 4URL user malformatted. The user-part of the URL syntax was not correct..IP 5Couldn't resolve proxy. The given proxy host could not be resolved..IP 6Couldn't resolve host. The given remote host was not resolved..IP 7Failed to connect to host..IP 8FTP weird server reply. The server sent data curl couldn't parse..IP 9FTP access denied. The server denied login or denied access to the particularresource or directory you wanted to reach. Most often you tried to change to adirectory that doesn't exist on the server..IP 10FTP user/password incorrect. Either one or both were not accepted by theserver..IP 11FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request..IP 12FTP weird USER reply. Curl couldn't parse the reply sent to the USER request..IP 13FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request..IP 14FTP weird 227 format. Curl couldn't parse the 227-line the server sent..IP 15FTP can't get host. Couldn't resolve the host IP we got in the 227-line..IP 16FTP can't reconnect. Couldn't connect to the host we got in the 227-line..IP 17FTP couldn't set binary. Couldn't change transfer method to binary..IP 18Partial file. Only a part of the file was transferred..IP 19FTP couldn't download/access the given file, the RETR (or similar) commandfailed..IP 20FTP write error. The transfer was reported bad by the server..IP 21FTP quote error. A quote command returned error from the server..IP 22HTTP page not retrieved. The requested url was not found or returned anothererror with the HTTP error code being 400 or above. This return code onlyappears if \fI-f/--fail\fP is used..IP 23Write error. Curl couldn't write data to a local filesystem or similar..IP 24Malformed user. User name badly specified..IP 25FTP couldn't STOR file. The server denied the STOR operation, used for FTPuploading..IP 26Read error. Various reading problems..IP 27Out of memory. A memory allocation request failed..IP 28Operation timeout. The specified time-out period was reached according to theconditions..IP 29FTP couldn't set ASCII. The server returned an unknown reply..IP 30FTP PORT failed. The PORT command failed. Not all FTP servers support the PORTcommand, try doing a transfer using PASV instead!.IP 31FTP couldn't use REST. The REST command failed. This command is used forresumed FTP transfers..IP 32FTP couldn't use SIZE. The SIZE command failed. The command is an extensionto the original FTP spec RFC 959..IP 33HTTP range error. The range "command" didn't work..IP 34HTTP post error. Internal post-request generation error..IP 35SSL connect error. The SSL handshaking failed..IP 36FTP bad download resume. Couldn't continue an earlier aborted download..IP 37FILE couldn't read file. Failed to open the file. Permissions?.IP 38LDAP cannot bind. LDAP bind operation failed..IP 39LDAP search failed..IP 40Library not found. The LDAP library was not found..IP 41Function not found. A required LDAP function was not found..IP 42Aborted by callback. An application told curl to abort the operation..IP 43Internal error. A function was called with a bad parameter..IP 44Internal error. A function was called in a bad order..IP 45Interface error. A specified outgoing interface could not be used..IP 46Bad password entered. An error was signaled when the password was entered..IP 47Too many redirects. When following redirects, curl hit the maximum amount..IP 48Unknown TELNET option specified..IP 49Malformed telnet option..IP 51The remote peer's SSL certificate wasn't ok.IP 52The server didn't reply anything, which here is considered an error..IP 53SSL crypto engine not found.IP 54Cannot set SSL crypto engine as default.IP 55Failed sending network data.IP 56Failure in receiving network data.IP 57Share is in use (internal error).IP 58Problem with the local certificate.IP 59Couldn't use specified SSL cipher.IP 60Problem with the CA cert (path? permission?).IP 61Unrecognized transfer encoding.IP 62Invalid LDAP URL.IP 63Maximum file size exceeded.IP 64Requested FTP SSL level failed.IP 65Sending the data requires a rewind that failed.IP 66Failed to initialise SSL Engine.IP 67User, password or similar was not accepted and curl failed to login.IP 68File not found on TFTP server.IP 69Permission problem on TFTP server.IP 70Out of disk space on TFTP server.IP 71Illegal TFTP operation.IP 72Unknown TFTP transfer ID.IP 73File already exists (TFTP).IP 74No such user (TFTP).IP 75Character conversion failed.IP 76Character conversion functions required.IP XXThere will appear more error codes here in future releases. The existing onesare meant to never change..SH AUTHORS / CONTRIBUTORSDaniel Stenberg is the main author, but the whole list of contributors isfound in the separate THANKS file..SH WWWhttp://curl.haxx.se.SH FTPftp://ftp.sunet.se/pub/www/utilities/curl/.SH "SEE ALSO".BR ftp (1),.BR wget (1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -