asp.net mvc - How to use url encoded data in get method? -
i working on restful service in asp.net mvc 4 web api
. have method getting url encoded data parameter uri. but, thing when try method restclient
(firefox tool), getting 404. , when check stack trace url seems non encoded parameter. can see example below:
url format: /api/applications/key
i sending this:
/api/applications/3baxyhyzpvgtriizs4cvgv4kicirhn5yqx%2f9a5pztjxk4swvcwi9gi6bib9pe1psk%2fdyed0eaodmhzpzwl%2fbwg%3d%3d
in response body, request url seems this;
/api/applications/3baxyhyzpvgtriizs4cvgv4kicirhn5yqx/9a5pztjxk4swvcwi9gi6bib9pe1psk/dyed0eaodmhzpzwl/bwg==
i getting error because of escape characters. can use post want go on restful architecture.
any advice appreciated.
Comments
Post a Comment