Linux curl命令参数常用
来源:互联网 发布:oracle数据库字符集 编辑:程序博客网 时间:2024/05/20 13:40
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转码:
iconv的用法请参阅:在Linux/Unix系统下用iconv命令处理文本文件中文乱码问题
2. Linux curl使用代理:
linux curl使用http代理抓取页面:
使用socks代理抓取页面:
代理服务器地址可以从爬虫代理上获取。
3. linux curl处理cookies
接收cookies:
发送cookies:
4. linux curl发送数据:
linux curl get方式提交数据:
linux curl post方式提交数据:
以表单的方式上传文件:
相当于设置form表单的method="POST"和enctype='multipart/form-data'两个属性。
5. linux curl http header处理:
设置http请求头信息:
设置http响应头处理:
6. linux curl认证:
7. 其他:
- Linux curl命令参数常用
- linux curl 命令参数
- Linux curl命令参数详解
- Linux curl命令参数详解
- Linux curl命令参数详解
- Linux curl命令参数详解
- Linux curl命令参数详解
- Linux curl命令参数详解
- curl和wget命令常用参数
- curl 命令使用及常用参数
- Linux curl命令参数详解--转载
- linux之curl命令常用总结
- es 常用curl命令
- Linux tar 命令常用参数
- [转]curl - linux curl命令
- linux curl 参数
- linux curl参数详解
- Linux中的curl命令
- Workflow常见错误如何解决
- 【DB.PL/SQL】程序流程控制 —— 异常处理
- 【移动开发】Service类onStartCommand()返回值和参数
- 关注CSDN社区微信,更多精彩等你来
- cocos2d 坐标系使用
- Linux curl命令参数常用
- CreateThread函数
- Eclipse杂记之屏蔽自带的ant插件
- Java报错&解决汇总
- leetcode - Minimum Path Sum
- 编辑器引发的PHP网站问题
- Unknown initial character set index '45' received from server.
- C语言之宏定义
- 屏蔽apk在主界面上的显示