Skip to content

Instantly share code, notes, and snippets.

@netcore-jroger
Created August 11, 2014 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netcore-jroger/f9c3af951e30d3b2904e to your computer and use it in GitHub Desktop.
Save netcore-jroger/f9c3af951e30d3b2904e to your computer and use it in GitHub Desktop.
处理模拟 HTTP 请求时,如果有 302 状态码的情况
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