문제

Is it possible to encapsulate an Xml Rpc call within an Winhttp 5.1 object ? The reason I am asking this is because as far as I know Winhttp automatically resolves any proxy settings which I do not know beforehand for each user. I also don't want to set the proxy for each xml rpc call I make by hand since my users are all over the country.

Thx for any suggestions.

도움이 되었습니까?

해결책

This helped me :

var url = new Uri("http://www.example.com/");
string ProxyUrl = WebRequest.DefaultWebProxy.GetProxy(url).ToString();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top