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)你很好走。 –