linux-curl
发表于:2024-09-22 作者:千家信息网编辑
千家信息网最后更新 2024年09月22日,curl是基于URL语法在命令行方式下工作的文件传输工具,它支持FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE及LDAP等协议。curl支持HTT
千家信息网最后更新 2024年09月22日linux-curl
curl是基于URL语法在命令行方式下工作的文件传输工具,它支持FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE及LDAP等协议。
curl支持HTTPS认证,并且支持HTTP的POST、PUT等方法, FTP上传, kerberos认证,HTTP上传,代理服务器, cookies, 用户名/密码认证, 下载文件断点续传,上载文件断点续传,,http代理服务器管道( proxy tunneling), 甚至它还支持IPv6, socks5代理服务器,,通过http代理服务器上传文件到FTP服务器等等,功能十分强大。
# curl的常用选项: -A/--user-agent设置用户代理发送给服务器 -basic 使用HTTP基本认证 --tcp-nodelay 使用TCP_NODELAY选项 -e/--referer 来源网址 --cacert CA证书 (SSL) --compressed 要求返回是压缩的格式 -H/--header 自定义头信息传递给服务器 -I/--head 只显示响应报文首部信息 --limit-rate 设置传输速度 -u/--user 设置服务器的用户和密码 -0/--http1.0 使用HTTP 1.0
#使用mod_deflate模块压缩页面优化传输速度[root@bogon ~]# curl -I 192.168.1.33:80HTTP/1.1 403 ForbiddenDate: Mon, 10 Jul 2017 00:46:21 GMTServer: Apache/2.2.15 (CentOS)Accept-Ranges: bytesContent-Length: 4954 #文本大小:4954 Connection: closeContent-Type: text/html; charset=UTF-8 #text/html格式#/etc/httpd/conf/httpd.conft添加deflate压缩模块 SetOutputFilter DEFLATE # mod_deflate configuration # Restrict compression to these MIME types AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/css # Level of compression (Highest 9 - Lowest 1) DeflateCompressionLevel 9 # Netscape 4.x has some problems. BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html [root@bogon ~]# service httpd reload #重启httpd服务Reloading httpd: [root@bogon ~]# curl -I --compressed 192.168.1.33:80HTTP/1.1 403 ForbiddenDate: Mon, 10 Jul 2017 00:46:59 GMTServer: Apache/2.2.15 (CentOS)Accept-Ranges: bytesVary: Accept-EncodingContent-Encoding: gzip #gzip格式Content-Length: 1991 #文档大小:1991Connection: closeContent-Type: text/html; charset=UTF-8
服务
服务器
代理
文件
支持
认证
格式
用户
传输
信息
大小
密码
断点
模块
速度
强大
功能
命令
工具
常用
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
服务器管理员登陆不上
算法服务器设备
无敌小说软件开发
北京通州网络安全技术研发厂房
网络安全的主要特点不包括
lol手游转换服务器
网络安全行政执法包括
江苏gps同步数显钟服务器
win7服务器共享盘怎么设置
打印机服务器驱动管理
软件开发趋势国产化
计算机网络技术授课视频
易语言自动更新网页数据库
网页文件传到服务器
向鸿 南昌 软件开发
机房网络安全风险
拍照APP软件开发需求分析
初中网络安全教育计划
手机app软件开发公司深圳
云丰云服务器哪个好
我为网络安全代言文字版
网络安全的主要特点不包括
修改底层数据库数据
一年级网络安全为主题的绘画
数据库一直开着有事吗
数据库类型不匹配的数据
网络安全为中心的题
怎么卸载网络安全助手
软件开发和PC
注册一个网络技术公司