Http request special symbol variable space
Others
2020-01-10 17:24:16
views: null
Http request special symbol variable space
- Today when debugging the client to the server to pass parameters, parameter values appear in the url +, space, /,?,%, #, & Other special symbols when you automatically become a space, you can not get the correct parameter values on the server side . Solutions are as follows:
- method one
- Modify the client, the client with "+" parameter in the "+" replace all "% 2B", this parameter can be obtained when the terminal to the server "+" a.
- Method Two
- Modify the server side, a space is replaced with "+", which is only available to the parameter in the "+" in the case where there is no space.
Origin www.cnblogs.com/frankltf/p/12176947.html