3

Both GetSystemWebProxy and DefaultWebProxy return null.

WebRequest.GetSystemWebProxy();
WebRequest.DefaultWebProxy;
poupou
  • 43,413
  • 6
  • 77
  • 174
Simon
  • 33,714
  • 21
  • 133
  • 202
  • If there is indeed a proxy in place, this sounds like a potential bug. – Noldorin Nov 04 '11 at 01:47
  • @Noldorin yes there is a proxy in place. although feel free to replicate, it is possible it is an environmental issue. – Simon Nov 04 '11 at 01:49
  • Next time I boot up to OS X with Mono, I'll definitely give it a go... Mono isn't as well tested on OS X traditionally, but yeah. Good luck anyway – Noldorin Nov 04 '11 at 02:01

1 Answers1

1

If you use a recent version of monomac (or build it from source) then you should be able to call the static method CFNetwork.GetDefaultProxy (source, look at the end of the file) to get an IWebProxy instance that should match what OSX is using.

poupou
  • 43,413
  • 6
  • 77
  • 174