0
WebRequest.CreateDefault(new Uri("http://localhost/test_Queue."))
待办事项请求http://localhost/test_Queue(无点)URI在原始URL的末尾去除点
- 请求不适合之前更换点到
%2E
。 genericUriParserOptions="DontUnescapePathDotsAndSlashes"
- 没有帮助
什么想法? (解决方案为4.0框架)
谢谢,CreateHttp不会将cookie传递给服务器 - 不合适,并且自4.5起可用(我正在寻找4.0的解决方案) – bestlion
[CreateHttp](https://msdn.microsoft.com/zh-cn/library/system .net.webrequest.createhttp(v = vs.100).aspx)在.NET 4.0中可用。至于传递Cookie,您需要为请求分配一个[CookieContainer](https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.cookiecontainer(v = vs.110).aspx)你很好走。 –