使用查询助手访问请求的URL
我需要什么;
api/getcharacteristicsbulk?versionCode = rtuk8l1& language = 2 转到此地址。
var urlCode = selectedVersionCode + "&" + "language=" + language;
string url = QueryHelpers.AddQueryString($"{_urls.BaseUrl}{_urls.SapCharacteristicService.GetCharacteristicsBulk}", "versionCode", System.Web.HttpUtility.UrlDecode(urlCode));
当我运行这个; API/GetCharacteristicsBulk?rtuk8l1%262 = rtuk8l1%25262。 我得到上述结果。
api/getcharacteristicsbulk?versionCode = rtuk8l1& language = 2我该怎么做才能获取输出?
what I need;
api/GetCharacteristicsBulk?versionCode=RTUK8L1&language=2
go to this address.
var urlCode = selectedVersionCode + "&" + "language=" + language;
string url = QueryHelpers.AddQueryString(quot;{_urls.BaseUrl}{_urls.SapCharacteristicService.GetCharacteristicsBulk}", "versionCode", System.Web.HttpUtility.UrlDecode(urlCode));
when i run this;
api/GetCharacteristicsBulk?RTUK8L1%262=RTUK8L1%25262.
I get a result as above.
api/GetCharacteristicsBulk?versionCode=RTUK8L1&language=2 What should I do to get the output?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下使用字符串
结果
api/getcharacteristicsbulk?versionCode = rtuk8l1& language = 2
The following uses a string AddQueryString(String, IDictionary<String,String>) overload will give you the correct result.
Result
api/GetCharacteristicsBulk?versionCode=RTUK8L1&language=2