Curl
Author: b | 2025-04-25
curl 8.2.0. 登录 注册. 开源 curl-8_2_0. curl-8_1_2. curl-8_1_1. curl-8_1_0. curl-8_0_1. curl-8_0_0. curl-7_88_1. curl-7_88_0. curl-7_87_0. curl-7_86_0. curl-7_85_0. curl-7_84_0. Visit
curl-7_70_0 - curl/curl - MyGit
CURL 8.12.1 Date released: 14 Feb 2025 (one month ago) cURL 8.12.0 Date released: 05 Feb 2025 (one month ago) cURL 8.11.1 Date released: 11 Dec 2024 (3 months ago) cURL 8.11.0 Date released: 06 Nov 2024 (5 months ago) cURL 8.10.1 Date released: 18 Sep 2024 (6 months ago) cURL 8.10.0 Date released: 11 Sep 2024 (7 months ago) cURL 8.9.1 Date released: 31 Jul 2024 (8 months ago) cURL 8.9.0 Date released: 24 Jul 2024 (8 months ago) cURL 8.8.0 Date released: 22 May 2024 (10 months ago) cURL 8.7.1 Date released: 27 Mar 2024 (12 months ago) cURL 8.6.0 Date released: 31 Jan 2024 (one year ago) cURL 8.5.0 Date released: 06 Dec 2023 (one year ago) cURL 8.4.0 Date released: 11 Oct 2023 (one year ago) cURL 8.3.0 Date released: 13 Sep 2023 (one year ago) cURL 8.2.1 Date released: 26 Jul 2023 (one year ago) cURL 8.2.0 Date released: 19 Jul 2023 (one year ago) cURL 8.1.2 Date released: 30 May 2023 (one year ago) cURL 8.1.1 Date released: 23 May 2023 (one year ago) cURL 8.1.0 Date released: 18 May 2023 (one year ago) cURL 8.0.0 Date released: 20 Mar 2023 (2 years ago). curl 8.2.0. 登录 注册. 开源 curl-8_2_0. curl-8_1_2. curl-8_1_1. curl-8_1_0. curl-8_0_1. curl-8_0_0. curl-7_88_1. curl-7_88_0. curl-7_87_0. curl-7_86_0. curl-7_85_0. curl-7_84_0. Visit curl/curl master:7.80.0. MyGit. curl-7_80_0 . curl/curl . 版本发布时间: . curl/curl最新发布版本:curl-8_11_1( ):trophy: curl 7.80.0 cURL is a bot, but at the moment it is not known who develops it. Latest cURL versions: cURL 7.54; cURL 7.35; cURL 7.29; cURL 7.19; cURL 7.15; cURL supported platforms: Linux; cURL supported devices: Linux Desktop; cURL architectures: 32-bit; 64-bit; Latest user agents (if you are looking for complete list, download it here): curl/8.11.1; curl Reproducible, static, curl binaries for Linux, macOS and Windows - curl-for-win/ at main curl/curl-for-win. Reproducible, static, curl binaries for Linux, macOS and Windows - curl/curl-for-win. 此 Curl 参考手册包含命令和一些常见的 Curl 技巧示例。入门介绍Curl 是一种在服务器之间传输数据的工具,支持协议,包括 HTTP/FTP/IMAP/LDAP/POP3/SCP/SFTP/SMB/SMTP 等Curl GitHub 源码仓库 (github.com)Curl 官方网站 (curl.se)Options-o file> # --output: 写入文件-u user:pass # --user: 验证-v # --verbose: 在操作期间使 curl 冗长-vv # 更冗长-s # --silent: 不显示进度表或错误-S # --show-error: 与 --silent (-sS) 一起使用时,显示错误但没有进度表-i # --include: 在输出中包含 HTTP 标头-I # --head: 仅标头请求-X POST # --request-L # 如果页面重定向,请点击链接-F # --form: multipart/form-data 的 HTTP POST 数据数据# --data: HTTP post 数据# URL 编码(例如,status="Hello")-d 'data'# --data 通过文件-d @file# --get: 通过 get 发送 -d 数据-G头信息 Headers-A str> # --user-agent-b name=val # --cookie-b FILE # --cookie-H "X-Foo: y" # --header--compressed # 使用 deflate/gzipSSL --cacert file> --capath dir>-E, --cert cert> # --cert: 客户端证书文件 --cert-type # der/pem/eng-k, --insecure # 对于自签名证书安装apk add --update curl # alpine linux 中安装示例CURL GET/HEAD命令说明curl -I 发请求curl -v -I curl 发请求curl -X GET http 方法进行 curlcurl --noproxy 127.0.0.1 http 代理的 curlcurl --connect-timeout 10 -I -k 默认没有超时curl --verbose --header "Host: www.mytest.com:8182" www.baidu.comcurl 得到额外的标题curl -k -v 获取带有标题的响应多文件上传$ curl -v -include \ --form key1=value1 \ --form upload=@localfilename URL为 curl 响应美化 json 输出$ curl -XGET | python -m json.toolCURL POST命令说明curl -d "name=username&password=123456" curl 发请求curl -H "content-type: application/json" -d "{ "woof": "bark"}"curl 发送 jsonCURL 脚本安装 rvmcurl -sSL | bashCURL 高级命令说明curl -L -s curl -L -s IPcurl -u $username:$password curlcurl -v -F key1=value1 -F upload=@localfilename curl 上传curl -k -v --http2 http2 curlcurl -T cryptopp552.zip -u test:test ftp://10.32.99.187/curl ftp 上传curl -u test:test ftp://10.32.99.187/cryptopp552.zip -o cryptopp552.zipcurl ftp 下载curl -v -u admin:admin123 --upload-file package1.zip curl 上传检查网站响应时间curl -s -w \ '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' \ -o /dev/null Curl 检查远程资源是否可用curl -o /dev/null --silent -Iw "%{http_code}" | \grep --only-matching 'src="[^"]*.[png]"' | \cut -d" -f2 | \while read i; do curl \-o "${i##*/}"; done从站点下载所有 PNG 文件(使用GNU grep)下载文件,保存文件而不更改其名称curl --remote-name " --remote-name " --output foo.html继续部分下载curl --remote-name --continue-at - " " --output "file_#1.html"下载一系列文件curl " --output "#1_#2.webp"下载一系列文件(输出foo_file1.webp、foo_file2.webp…bar_file1_webp等)将输出重定向到文件$ curl > file基本认证$ curl --user username:password curl -u username:password curl -o file curl --output file curl -o file curl --output file curl -s -K file# 从文件中读取配置curl --config file$HOME/.curlrc # 类 UNIX 系统中的默认配置文件Comments
CURL 8.12.1 Date released: 14 Feb 2025 (one month ago) cURL 8.12.0 Date released: 05 Feb 2025 (one month ago) cURL 8.11.1 Date released: 11 Dec 2024 (3 months ago) cURL 8.11.0 Date released: 06 Nov 2024 (5 months ago) cURL 8.10.1 Date released: 18 Sep 2024 (6 months ago) cURL 8.10.0 Date released: 11 Sep 2024 (7 months ago) cURL 8.9.1 Date released: 31 Jul 2024 (8 months ago) cURL 8.9.0 Date released: 24 Jul 2024 (8 months ago) cURL 8.8.0 Date released: 22 May 2024 (10 months ago) cURL 8.7.1 Date released: 27 Mar 2024 (12 months ago) cURL 8.6.0 Date released: 31 Jan 2024 (one year ago) cURL 8.5.0 Date released: 06 Dec 2023 (one year ago) cURL 8.4.0 Date released: 11 Oct 2023 (one year ago) cURL 8.3.0 Date released: 13 Sep 2023 (one year ago) cURL 8.2.1 Date released: 26 Jul 2023 (one year ago) cURL 8.2.0 Date released: 19 Jul 2023 (one year ago) cURL 8.1.2 Date released: 30 May 2023 (one year ago) cURL 8.1.1 Date released: 23 May 2023 (one year ago) cURL 8.1.0 Date released: 18 May 2023 (one year ago) cURL 8.0.0 Date released: 20 Mar 2023 (2 years ago)
2025-04-17此 Curl 参考手册包含命令和一些常见的 Curl 技巧示例。入门介绍Curl 是一种在服务器之间传输数据的工具,支持协议,包括 HTTP/FTP/IMAP/LDAP/POP3/SCP/SFTP/SMB/SMTP 等Curl GitHub 源码仓库 (github.com)Curl 官方网站 (curl.se)Options-o file> # --output: 写入文件-u user:pass # --user: 验证-v # --verbose: 在操作期间使 curl 冗长-vv # 更冗长-s # --silent: 不显示进度表或错误-S # --show-error: 与 --silent (-sS) 一起使用时,显示错误但没有进度表-i # --include: 在输出中包含 HTTP 标头-I # --head: 仅标头请求-X POST # --request-L # 如果页面重定向,请点击链接-F # --form: multipart/form-data 的 HTTP POST 数据数据# --data: HTTP post 数据# URL 编码(例如,status="Hello")-d 'data'# --data 通过文件-d @file# --get: 通过 get 发送 -d 数据-G头信息 Headers-A str> # --user-agent-b name=val # --cookie-b FILE # --cookie-H "X-Foo: y" # --header--compressed # 使用 deflate/gzipSSL --cacert file> --capath dir>-E, --cert cert> # --cert: 客户端证书文件 --cert-type # der/pem/eng-k, --insecure # 对于自签名证书安装apk add --update curl # alpine linux 中安装示例CURL GET/HEAD命令说明curl -I 发请求curl -v -I curl 发请求curl -X GET http 方法进行 curlcurl --noproxy 127.0.0.1 http 代理的 curlcurl --connect-timeout 10 -I -k 默认没有超时curl --verbose --header "Host: www.mytest.com:8182" www.baidu.comcurl 得到额外的标题curl -k -v 获取带有标题的响应多文件上传$ curl -v -include \ --form key1=value1 \ --form upload=@localfilename URL为 curl 响应美化 json 输出$ curl -XGET | python -m json.toolCURL POST命令说明curl -d "name=username&password=123456" curl 发请求curl -H "content-type: application/json" -d "{ "woof": "bark"}"curl 发送 jsonCURL 脚本安装 rvmcurl -sSL | bashCURL 高级命令说明curl -L -s curl -L -s IPcurl -u $username:$password curlcurl -v -F key1=value1 -F upload=@localfilename curl 上传curl -k -v --http2 http2 curlcurl -T cryptopp552.zip -u test:test ftp://10.32.99.187/curl ftp 上传curl -u test:test ftp://10.32.99.187/cryptopp552.zip -o cryptopp552.zipcurl ftp 下载curl -v -u admin:admin123 --upload-file package1.zip curl 上传检查网站响应时间curl -s -w \ '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' \ -o /dev/null Curl 检查远程资源是否可用curl -o /dev/null --silent -Iw "%{http_code}" | \grep --only-matching 'src="[^"]*.[png]"' | \cut -d" -f2 | \while read i; do curl \-o "${i##*/}"; done从站点下载所有 PNG 文件(使用GNU grep)下载文件,保存文件而不更改其名称curl --remote-name " --remote-name " --output foo.html继续部分下载curl --remote-name --continue-at - " " --output "file_#1.html"下载一系列文件curl " --output "#1_#2.webp"下载一系列文件(输出foo_file1.webp、foo_file2.webp…bar_file1_webp等)将输出重定向到文件$ curl > file基本认证$ curl --user username:password curl -u username:password curl -o file curl --output file curl -o file curl --output file curl -s -K file# 从文件中读取配置curl --config file$HOME/.curlrc # 类 UNIX 系统中的默认配置文件
2025-04-05GET request method and will not download the body of the HTTP response message. Curl GET HTTP headers example curl -I Getting JSON using Curl To receive data in JSON format with Curl, you must pass the "Accept: application/json" HTTP header to the server. If you do not pass this header, the server may automatically choose your client's most appropriate data type and return the data in a different format. The following is an example of getting JSON from a ReqBin echo URL: Curl GET JSON example curl -H "Accept: application/json" Checking if the target URL supports HTTP/2 using Curl To check if the target URL supports HTTP/2 using Curl, you can send a Curl HEAD request along with the --http2 command line parameter. Curl HTTP/2 support check curl -I --http2 In the response, you will see the HTTP/2 200 status line if your server supports the HTTP/2 protocol or HTTP/1.1 200 otherwise. Sending cookies along with a GET request using Curl You can send cookies to the server using the -b command-line option followed by a string with the cookie or the name of the file containing the cookies. Curl GET Request Example with Cookies curl -b "session=eJwlzj0wMQG7eO4Q" Getting a specific range of bytes from a resource using Curl To get a specific range of resource bytes from a target URL using Curl, you can use the -r command line option. Curl example to get a specific range of bytes curl -r 0-15000 Limiting the maximum transfer rate for Curl GET requests You can use the-- limit-rate command line option to limit the maximum transfer rate for uploading and downloading files in Curl. By default, the speed is measured in bytes per second, but you can specify the speed in kilobytes (K), megabytes (M), or gigabytes (G) using a
2025-03-29What is Curl? Curl stands for Client for URLs, and it is a popular command-line tool for Linux, Windows, and macOS for transferring data over the network using HTTP, HTTPS, FTP, and SFTP protocols. You can make GET, POST, and HEAD requests to the server, retrieve HTTP headers, download HTML pages, upload files, submit forms, and more. What is HTTP GET request? The HTTP GET method requests a resource from the server using the provided URL. The GET method is one of nine standard HTTP (Hypertext Transfer Protocol) methods. The primary purpose of the GET method is to retrieve data from the server. HTTP GET requests cannot send data to the server in the body of a GET message or change the server's state. But you can still pass data to the server in URL parameters. Curl GET Request Examples The following are examples of sending a GET request to Curl: Basic Curl GET request example Curl is effortless to use, and this basic Curl example demonstrates how easy it is to make a GET request to the target server using Curl. Basic Curl GET request example curl The server's response to our Curl request: Server response to Curl request HTTP/1.1 200 OKContent-Type: text/htmlContent-Length: 643 [html code here] Sending HTTP headers with a Curl GET request To make a GET request with HTTP headers, use the -H command-line option. You can pass as many HTTP headers with your Curl GET request as you like using the -H command line parameter multiple times. Curl GET Request Example with custom HTTP headers curl -H "Cache-Control: must-revalidate" -H "Pragma: no-cache" -H "Expires: 0" Getting only HTTP headers using Curl To fetch only HTTP headers, use the -I command-line option. In this case, Curl will use the HTTP HEAD method instead of the HTTP
2025-03-26Option to resume the download like socurl -O -C - location (-L) option is also worth learning. If a resource has been moved to a new URL, the server may return an HTTP redirect response. In this case, you can use the -L option to instruct curl to follow the redirect.For instance, let’s go back to our first example. If the GitLab install script is moved to a new location and curl gets redirected, including the -L flag ensures the file will be downloaded from the new URL.curl -LO Curl Use-CasesAs I said, curl is primarily used to download files but that’s not its only use. By default, curl retrieves content from the specified URL and prints it to the standard output.curl can view the URL’s HTTP response headers with the -I option.curl -I can use the -L flag as explained earlier to follow redirects.curl -L you can use the verbose (-v) flag if you want to see more detailed info on the request (response headers, IP, TLS handshake, etc.).curl -v you want to explore more possibilities with curl, I recommend checking the curl help page (curl --help) or the man page (curl --manual).Managing Curl on UbuntuIf you installed the curl snap, you won’t need to worry about updating it as snaps auto-update. If you want to remove the curl snap instead, you can usesudo snap remove curlWith the apt version, you can update the curl package with the following one-liner.sudo apt update && sudo apt install --only-upgrade curlIf you want to uninstall curl instead, you can usesudo apt remove curl
2025-04-11