字符+在HTTP Post中转换为%2B [英] Character + is converted to %2B in HTTP Post

查看:609
本文介绍了字符+在HTTP Post中转换为%2B的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我们在工作中使用的GM脚本添加功能,但是当尝试发布(跨站点我可以添加)到另一个页面时,我的CMD的发布值与页面上的不同。



应该是Access + My +帐户+信息,但发布的值将变为Access%2BMy%2BAccount%2BInfo。



所以我想我的问题是:逃避我的价值是什么,如何让它不能逃脱?如果没有办法解开它,有没有人有任何解决方法的想法?



谢谢!



解决方案

%2B + 的代码。你(或者你正在使用的任何框架)应该已经在POST数据服务器端解码了。


I'm adding functionality to a GM script we use here at work, but when trying to post (cross site may I add) to another page, my posting value of CMD is different than what it is on the page.

It's supposed to be Access+My+Account+Info but the value that is posted becomes Access%2BMy%2BAccount%2BInfo.

So I guess my question is: What's escaping my value and how do I make it not escape? And if there's no way to unescape it, does anyone have any ideas of a workaround?

Thanks!

解决方案

%2B is the code for a +. You (or whatever framework you're using) should already be decoding the POST data server-side...

这篇关于字符+在HTTP Post中转换为%2B的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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