网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Linux上怎么直接使用urlencode和urldecode命令-创新互联

本篇内容主要讲解“Linux上怎么直接使用urlencode和urldecode命令”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Linux上怎么直接使用urlencode和urldecode命令”吧!

成都创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于成都网站设计、成都做网站、兴安盟网络推广、微信平台小程序开发、兴安盟网络营销、兴安盟企业策划、兴安盟品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们大的嘉奖;成都创新互联公司为所有大学生创业者提供兴安盟建站搭建服务,24小时服务热线:18980820575,官方网址:www.cdcxhl.com

CentOS安装:

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://bjjierui.cn/article/depose.html

其他资讯