Linux curl命令参数常用

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转码:

参考知识库

猜你在找
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
快速回复 TOP

你可能感兴趣的:(curl)