【发布时间】:2019-02-19 07:57:05
【问题描述】:
我想通过 rest URL 将动态参数传递给具有动态参数的 C# 方法。 例如,我想这样调用一个rest URL:
http://localhost:2000/custom?**user=admin?password=admin?brand=dell&limit=20&price=20000&type1=laptop&type2=phone**
对于一个动态参数的C#方法,动态参数取“user”及其值“admin”、“brand”及其值“dell”等,并对其进行处理。
谁能帮帮我。
【问题讨论】:
-
永远不要在 URL 中发送密码。如果您仅使用 https,请将其放在帖子中或放在标题中。
标签: c# asp.net post asp.net-web-api keyvaluepair