Если есть у кого пример кода OPTIONS запроса через socks5 прокси, поделитесь пожалуйста
Выдает:
Выполнение действия CSharp OwnCode. The ServicePointManager does not support proxies with the socks5 scheme.
C#:
var request = (HttpWebRequest) WebRequest.Create("https://site.com");
request.Method = "OPTIONS";
request.Headers.Add("Access-Control-Request-Headers", "content-type");
request.Headers.Add("Access-Control-Request-Methods", "POST");
request.UserAgent = project.Variables["user_agent"].Value;
WebProxy myproxy = new WebProxy(project.Variables["proxy"].Value, false);
request.Proxy = myproxy;
var response = (HttpWebResponse)request.GetResponse();
response.Close();
Выполнение действия CSharp OwnCode. The ServicePointManager does not support proxies with the socks5 scheme.