- Home /
how do i use the www class using a proxy server
I need to access a web address but it is failing due to the institutions proxy not being used by unity (it is set in osx system prefs but seems to be ignored by unity) any help on how to manually use the proxy?
cheers
Answer by qJake · Mar 31, 2010 at 12:16 AM
Don't use the WWW class, use something like System.Net.WebClient (MSDN) or the HttpWebRequest (MSDN) class. Both of these, as far as I remember, support basic HTTP proxying.
only problem is that the request stalls all rendering.. anyway you know of yielding whilst this takes place like you can do with a WWW class yield?
Just thread the request asynchronously. Look at the System.Threading.Thread class. - http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx
Answer by AngryAnt · Mar 31, 2010 at 09:24 AM
Notice that for webplayers, WWW does handle proxies just fine. All WWW calls go through the browser and thus use its settings for proxies etc.
Answer by macs_yums · Jun 08, 2011 at 12:23 AM
http://forum.unity3d.com/threads/69896-Using-Unity-when-behind-a-proxy?highlight=HTTP_proxy
was finally able to solve this by setting the user ENV Variable HTTPS_proxy to http://www{my own proxy}:8000. This was instead of the HTTP_proxy. It was confusing, because apparently the "Check of Updates" does not use a secure conneciton (so it worked with HTTP_proxy), but the Assett Store does require a secrue connection.
WWW class also seems to work.
Your answer
Follow this Question
Related Questions
Localhost WWW proxy issue (can't bypass?) 1 Answer
WWW class implemented with threads? 1 Answer
how to enter another request from www with c# 1 Answer
How to stop a WWW which is in progress? 0 Answers