QueryString malformed after URLDecode

后端 未结 11 1448
太阳男子
太阳男子 2020-12-09 11:25

I\'m trying to pass in a Base64 string into a C#.Net web application via the QueryString. When the string arrives the \"+\" (plus) sign is being replaced by a space. It appe

11条回答
  •  情话喂你
    2020-12-09 11:46

    Well, obviously you should have the Base64 string URLEncoded before sending it to the server.
    If you cannot accomplish that, I would suggest simply replacing any embedded spaces back to +; since b64 strings are not suposed to have spaces, its a legitimate tactic...

提交回复
热议问题