This is a C# question that might be related to Web, so, experts will advise.
I have a RestAPI to which I send requests (PUT, GET mainly). The base URL is, let's say, http://192.168.126.121:6677/base/rest/ini"
.
After this, for operation XYZ, I have to call for example
http://192.168.126.121:6677/base/rest/ini/customer/acc/list
I noticed that my consoleapp runs normally even if I call
http://192.168.126.121:6677/base/rest/ini/customer/acc//////list
(Notice the acc//////list
part).
My question is dual:
C# how can I forbid multiple
/
in my task and concatenate all the/
into one? i.e. I get a URI from likehttp://192.168.126.121:6677/base/rest/ini/customer/acc//////list
and I want to end up withhttp://192.168.126.121:6677/base/rest/ini/customer/acc/list
for any experts in the field: is it normal that I get normal responses from the
http://192.168.126.121:6677/base/rest/ini/customer/acc//////list
url?
Thank you very much