网易云音乐下载
music.163.com/api/pc/download/latest
http://tool.chinaz.com/pagestatus/?url=music.163.com/api/pc/download/latest
pc版本下载 http://tool.chinaz.com/pagestatus/?url=music.163.com%2Fapi%2Fpc%2Fdownload%2Flatest
http://tool.chinaz.com/pagestatus/?url=music.163.com%2Fapi%2Fosx%2Fdownload%2Flatest
HttpStatusCode
Examples
The following example compares the status returned by an HttpWebResponse with a member of theHttpStatusCode class to determine the status of a response.
C#
HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create("http://www.contoso.com"); httpReq.AllowAutoRedirect = false; HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();
if (httpRes.StatusCode==HttpStatusCode.Moved) { // Code for moved resources goes here. } // Close the response. httpRes.Close();
string newUrl = httpRes.Headers["Location"];//获取重定向的网址
httpRes.Headers["Location"];//获取重定向的网址
Date: Fri, 12 May 2017 13:14:12 GMT
Server: Apache
Location: http://ss.ishadowx.com/
Content-Length: 207
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
Remarks
The HttpStatusCode enumeration contains the values of the status codes defined in RFC 2616 for HTTP 1.1.
The status of an HTTP request is contained in the HttpWebResponse.StatusCode property.
状态码 详情 https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netcore-2.0
https://msdn.microsoft.com/zh-cn/library/system.net.httpstatuscode.aspx