Hi I need to make WWW requests from behind a proxy but im failing Currently im Doing This : Code (csharp): var cr = new System.Net.NetworkCredential("user","pass"); dNetProxy = new System.Net.WebProxy(proxyIP_+":"+proxyPort_); dNetProxy.set_Credentials(cr); System.Net.WebRequest.DefaultWebProxy = dNetProxy; I do it once the Proxy settings are confirmed by the user. do i need to set it before every WWW request ? Another thing that im worried about is that Network.useProxy which i wil need for the multiplayer part doesn't have a field for Username ?
I also read that the WWW class, the System.Net.WebRequest and Network class have no relation at all !!! This means that changing the settings in System.Net.WebRequest is not going to influence the WWW class at all ?!?! If this is all true, then how do i get past a proxy with WWW. I do not want to rewrite all the function of the WWW in System.Net.WebRequest if i dont have to ...
There was a bug I reported, where I found Unity giving very unreliable response to proxy settings and the WWW class in varying circumstances. It would ignore the proxy defined in the system settings when using a stand-alone build on osX. It would pick them up when running in a webplayer in safari, but ignored them in firefox. The bug report number was 255804, reported back in 7/2009. It appears to still be open so I assume the problem still exists.