DefaultWebProxy on Mac

View: New views
2 Messages — Rating Filter:   Alert me  

DefaultWebProxy on Mac

by duanew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So it appears that System.Net.WebRequest.DefaultWebProxy does not work on Mac.  Am I missing something?

Thanks,
Duane

_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: DefaultWebProxy on Mac

by Michael Hutchinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 22, 2009 at 8:30 PM, Duane Wandless <duane@...> wrote:
> So it appears that System.Net.WebRequest.DefaultWebProxy does not work on
> Mac.  Am I missing something?

Mono's detection of the "default" proxy currently uses the HTTP_PROXY
env var, which is pretty much standard on Linux systems (and probably
other unixes, but I'm not sure). I don't know if this would work on
Mac. Unfortunately there has been little interest in improving the
proxy autodetection - I implemented it about 4 years ago because I was
stuck behind a university network proxy and no-one's touched it since.

Recently a new library called libproxy has appeared, which aims to
solve proxy autodetection on Linux, and I believe it has Windows
support, so I think the best solution would be to port it to Mac and
make Mono's autodetection use it *if* it's present. I could probably
advise on how to do this, but I don't have the time to do it myself.

--
Michael Hutchinson
http://mjhutchinson.com
_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx