Passing base64 encoded strings in URL

前端 未结 10 1844
臣服心动
臣服心动 2020-11-22 03:11

Is it safe to pass raw base64 encoded strings via GET parameters?

10条回答
  •  無奈伤痛
    2020-11-22 04:13

    In theory, yes, as long as you don't exceed the maximum url and/oor query string length for the client or server.

    In practice, things can get a bit trickier. For example, it can trigger an HttpRequestValidationException on ASP.NET if the value happens to contain an "on" and you leave in the trailing "==".

提交回复
热议问题