url编码%2526是什么? [英] What is url encoding %2526?

查看:798
本文介绍了url编码%2526是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么用%2526代替%26来编码&?

我正在调用一个指向外部站点的URL,当我将&编码为%2526时,参数正确传递,但是当我只使用%26时,参数却没有传递.

Im invoking a URL to an external site and when I encode the & as %2526 the parameters are passed correctly but when I just use %26 they are not.

推荐答案

如果对一个&符号进行url编码,则会得到%26.如果对%26进行url编码,则会得到%2526.因此,它被两次url编码.

If you url-encode an ampersand you get %26. If you url-encode %26 you get %2526. Thus, it is url-encoded twice.

这篇关于url编码%2526是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆