We have corporate clients that use a pac script (Proxy auto-config) to setup their proxies.
Whenever a UnityWebRequest is made an error is added into Player.log
cURL Error (7): couldn’t connect to host
From the little information I could find on the internet it would seem that Unity uses libcurl to set proxies, and this doesn’t support Javascript, which is the language that pac files are written in.
I found that it’s possible to set UNITY_PROXYSERVER in the environment variables with a static proxy, but not all clients have admin rights, and if the proxy setup changes then all the computers will need to be updated.
Is there any way to make UnityWebRequest work correctly with the pac (Proxy auto-config) setup?
Unity should pick proxy configured on operating system (static, automatic doesn’t work).
The environment variable is other option (you don’t have to set it system wide, can be set on user).
Any official response on this? I’m facing the same issue. Also would changes suggested on link below able to overcome this issue?
Whatever changes I make either on machine.config or web.config (after compiled app) doesn’t loading when starting the application. Would changes on those files be picked up on runtime or does it need to compile it again?