【发布时间】:2015-04-14 10:49:39
【问题描述】:
我正在开发一个 wcf REST 服务应用程序,下面是我的 uriTemplate。
http://localhost:50782/PhotoManager.svc/UploadPhoto/?fileName={fileName}&description={description}
以下是我来自客户端的网址,
http://localhost:50782/PhotoManager.svc/UploadPhoto/?fileName=001_003.jpg&description=D:\图片
但它在下划线和斜线处显示错误。
【问题讨论】:
-
你试过encodeURIComponent吗?
-
我尝试过使用 Uri.EscapeDataString();但在这里不行。
标签: c# wcf-rest uritemplate