We’re using this one:
var response = $"https://date.nager.at/api/v3/publicholidays/{year}/{countryCode}".GetJsonFromUrl();
And it won’t go through proxy. Validated that the proxy works on the machine (url is open etc), it’s even set as system default proxy.
None of the suggestions here seems to work:
For example, the
url.GetJsonFromUrl(requestFilter: req.Proxy = new WebProxy("http://webproxy:80/"));
which should probably be
url.GetJsonFromUrl(requestFilter: req => req.Proxy = new WebProxy("http://webproxy:80/"));
fails on the “req” does not have the Proxy attribute.
The web.config thing makes no difference.
We have also tried this, in Startup.cs AppHost’s Configure():
WebRequest.GetSystemWebProxy();
and the suggested
WebProxy proxyObject = new WebProxy("http://xxxxxxxx:8888");
GlobalProxySelection.Select = proxyObject;
None seem to work. Any suggestions?