Http request special symbol variable space

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.
    • 1159210-20200110164534630-637934417.png
  • 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.

Guess you like

Origin www.cnblogs.com/frankltf/p/12176947.html