Linux上怎么直接使用urlencode和urldecode命令-创新互联
本篇内容主要讲解“Linux上怎么直接使用urlencode和urldecode命令”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Linux上怎么直接使用urlencode和urldecode命令”吧!
成都创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于成都网站设计、成都做网站、兴安盟网络推广、微信平台小程序开发、兴安盟网络营销、兴安盟企业策划、兴安盟品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们大的嘉奖;成都创新互联公司为所有大学生创业者提供兴安盟建站搭建服务,24小时服务热线:18980820575,官方网址:www.cdcxhl.comCentOS安装:
yum install gridsite-clients
然后直接使用:
[root@local ~]# urlencode 'https://www.baidu.com/' https%3A%2F%2Fwww.baidu.com%2F
关于命令的详细使用方法:
NAME urlencode - convert strings to or from URL-encoded form SYNOPSIS urlencode [-m|-d] string [string ...] DESCRIPTION urlencode encodes strings according to RFC 1738. That is, characters A-Z a-z 0-9 . _ and - are passed through unmodified, but all other characters are represented as %HH, where HH is their two-digit upper-case hexadecimal ASCII representation. For example, the URL http://www.gridpp.ac.uk/ becomes http%3A%2F%2Fwww.gridpp.ac.uk%2F urlencode converts each character in all the strings given on the command line. If multiple strings are given, they are concatenated with separating spaces before conversion. OPTIONS -m Instead of full conversion, do GridSite "mild URL encoding" in which A-Z a-z 0-9 . = - _ @ and / are passed through unmodi‐ fied. This results in slightly more human-readable strings but the application must be prepared to create or simulate the directories implied by any slashes. -d Do URL-decoding rather than encoding, according to RFC 1738. %HH and %hh strings are converted and other characters are passed through unmodified, with the exception that + is converted to space.
到此,相信大家对“Linux上怎么直接使用urlencode和urldecode命令”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
网页名称:Linux上怎么直接使用urlencode和urldecode命令-创新互联
网站地址:http://scgulin.cn/article/depose.html