Linux curl命令参数常用

来源:互联网 发布:oracle数据库字符集 编辑:程序博客网 时间:2024/05/20 13:40

cURL
1 用途

  cURL是一个命令行方式下传输数据的开源传输工具。常被用来抓取网页和监控Web服务器状态。

2 支持协议

  DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET 和 TFTP。

3 描述

  The command is designed to work without user interaction.

  The URL syntax is protocol-dependent. You'll find a detailed description in RFC 3986.

  curl  normally  displays a progress meter during operations, indicating the amount of transferred data, transfer speeds and estimated time left, etc.

      curl displays this data to the terminal by default, so if you invoke curl to do an operation and it is about  to  write data to the terminal, it disables the progress meter as otherwise it would mess up the output mixing progress meter and response data.

4 用法

1. linux curl抓取网页:

抓取百度:

如发现乱码,可以使用iconv转码:

原创粉丝点击