c# - MVC 5 Web Api Backslash in Put request -
c# - MVC 5 Web Api Backslash in Put request -
here set in controller :
[httpput] public httpresponsemessage put(string name, [frombody]string value) { }
i testing using advenced rest client :
it works fine, ultimate goal able set directory in request's payload (where "test" is).
the problem beingness there backslash in string, "value" parameter turns out null
when function receive request.
how can set backslashes in payload?
use url encoding. example: http://meyerweb.com/eric/tools/dencoder/
\ %5c
c# asp.net-mvc asp.net-web-api
Comments
Post a Comment