字符+在HTTP Post中转换为%2B [英] Character + is converted to %2B in HTTP Post
问题描述
应该是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屋!