python curl工具_cURL——爬虫开发神器

cURL是一个利用URL语法在命令行下工作的文件传输工具,1997年首次发行。它支持文件上传和下载,所以是综合传输工具,但按传统,习惯称cURL为下载工具。cURL还包含了用于程序开发的libcurl。

一些命令[root@localhost ~]# curl http://httpbin.org/ip { "origin": "218.189.127.78" } [root@localhost ~]# curl http://httpbin.org/user-agent { "user-agent": "curl/7.29.0" } [root@localhost ~]# curl https://httpbin.org/get?show_env=1 { "args": { "show_env": "1" }, "headers": { "Accept": "*/*", "Connect-Time": "0", "Connection": "close", "Host": "httpbin.org", "Total-Route-Time": "0", "User-Agent": "curl/7.29.0", "Via": "1.1 vegur", "X-Forwarded-For": "218.189.127.78", "X-Forwarded-Port": "443", "X-Forwarded-Proto": "https", "X-Request-Id": "392e0fda-5f1b-4cc8-8131-77967bfe

你可能感兴趣的:(python,curl工具)