Web Request error 407 Proxy Authentication Required

后端 未结 2 2026
遥遥无期
遥遥无期 2021-01-03 09:27

Trying to GetResponse From a web site;

using System.Text;
using System.Net;
using System.IO;

namespace DutyPharmacy751013
{
class Program
{
    static void         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 10:03

    WebProxy webProxy = new WebProxy("http://myproxy.net:8080/", true)
         {
             UseDefaultCredentials = false,
             Credentials = new NetworkCredential("username", "pw")
    
         };
    

    Please note Correct sequence to set property {other wise failed for me}

提交回复
热议问题