Character + is converted to %2B in HTTP Post

扶醉桌前 提交于 2019-12-21 07:06:23

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/8946307/character-is-converted-to-2b-in-http-post

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!