Created
August 11, 2014 08:34
-
-
Save netcore-jroger/f9c3af951e30d3b2904e to your computer and use it in GitHub Desktop.
处理模拟 HTTP 请求时,如果有 302 状态码的情况
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/malteclasen/DracWake/blob/master/DracWake.Core/WebClient.cs | |
DracWake.Core/WebClient.cs | |
//处理模拟 HTTP 请求时,如果有 302 状态码的情况。 | |
设置 HttpWebRequest 类实例的 AllowAutoRedirect 为 false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment