[Mono-bugs] [Bug 690887] FtpWebRequest fails in presence of a proxy

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 2 15:18:04 EDT 2011



--- Comment #4 from QuickJack . <test051102 at hotmail.com> 2011-05-02 19:18:04 UTC ---
Mono uses the WebRequest.GetSystemWebProxy() method to return system proxy
information. The object returned is of type IWebProxy. Because WebRequest is an
abstract class we cannot call it directly. I have tested it like

IWebProxy proxy=FtpWebRequest.GetSystemWebProxy();

By looking into the implementation of GetSystemWebProxy() we can see, that the
proxy information is extracted from the http_proxy environment varible only.
The proxy bypass information which may have been configured in the system is
simply ignored. But IWebProxy doesn't provide any properties for that purpose

The WebProxy class derives from IWebProxy and has a BypassList property
defined. However, this property is never set and thus it's value is always

As a result, the proxy bypass list configured in the system is ignored by Mono
and thus this feature cannot be used.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list