C#如何修复System.Net.WebException 403禁止的错误

时间:2020-06-17 10:59:07

标签: c# webclient

当我尝试我的代码时,它给我System.Net.WebExpection 403 Forbidden错误。

我正在使用此代码:

string gettext = new System.Net.WebClient() { Proxy = null }.DownloadString("https://hastebin.com/raw/dawugajuvo");

我已经看过This Link,但是代码未接受特殊字符,例如Ö,Ç,Ğ,Ü,Æ,Ş

我该如何解决?

0 个答案:

没有答案