本篇內容主要講解“Linux上怎么直接使用urlencode和urldecode命令”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“Linux上怎么直接使用urlencode和urldecode命令”吧!
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命令”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續(xù)學習!
分享文章:Linux上怎么直接使用urlencode和urldecode命令-創(chuàng)新互聯(lián)
分享地址:http://jinyejixie.com/article34/depose.html
成都網站建設公司_創(chuàng)新互聯(lián),為您提供網站導航、云服務器、外貿建站、網站維護、網站制作、服務器托管
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內容