Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#WebProxy不适用于https_C#_Https_Webproxy - Fatal编程技术网

C#WebProxy不适用于https

C#WebProxy不适用于https,c#,https,webproxy,C#,Https,Webproxy,我有客户+赢家服务。 两者都必须使用代理与web服务器配合使用。 没有代理,一切正常, 使用系统代理设置(ie中的代理设置) 客户端工作正常,但服务未看到此代理设置(netsh-winhttp-set-proxy不帮助我)。所以-代理服务器工作正常 当我尝试使用手动设置时: var_proxy = new WebProxy(Server + ":" + Port, true) {Credentials = null}; var request = (HttpWebRequ

我有客户+赢家服务。
两者都必须使用代理与web服务器配合使用。
没有代理,一切正常,
使用系统代理设置(ie中的代理设置)

客户端工作正常,但服务未看到此代理设置(
netsh-winhttp-set-proxy
不帮助我)。所以-代理服务器工作正常
当我尝试使用手动设置时:

var_proxy = new WebProxy(Server + ":" + Port, true)
            {Credentials = null};
var request = (HttpWebRequest)WebRequest.Create(target);
        request.ContentType = Constants.ContentType;   // Default content type
        request.UserAgent = _userAgentHeader;
        request.Method = "POST";
        request.Proxy = _proxy;
正如我在代理日志中看到的,它与http服务器一起工作,但不与https一起使用!所有请求都直接发送。 我怎样才能修好它

var_proxy = new WebProxy(Server + ":" + Port, true)
            {Credentials = null};
var request = (HttpWebRequest)WebRequest.Create(target);
        request.ContentType = Constants.ContentType;   // Default content type
        request.UserAgent = _userAgentHeader;
        request.Method = "POST";
        request.Proxy = _proxy;