简体   繁体   中英

The remote server returned an error: (412) Precondition Failed

I see the error 412 Precondition failed with the below code. It used to work until 1st of April 2021. It started failing from 2nd April 2021.

var response = new WebClient().DownloadString("http://www.dce.com.cn");

Please can someone help me with this?

Thanks in advance

It's a bug in the server. A 412 on a request with no conditional request header fields is incorrect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM