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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -