Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Always explicitly setting Proxy (even to null) prevents the use of the default system proxy. #30

@joekrill

Description

@joekrill

The Google and Microsoft providers are explicitly always setting the Proxy on the web request, even if it is null. Which makes it cumbersome to use the default system proxy. And it causes the requests to ignore it if you supply this in your .config:

<system.net> <defaultProxy enabled="true" useDefaultCredentials="true" /> </system.net>

Instead, consider:

if(this.Proxy != null) {
  request.Proxy = this.Proxy;
}

The MapQuest geocoder does this. The Yahoo Geocoder doesn't seem to support proxies at all. Not only that, the property should really be changed to an IWebProxy instead of WebProxy. Because even if I manually wanted to set the provider to use the default proxy, System.Net.WebRequest.DefaultWebProxy returns the interface (IWebProxy) and not the class (WebProxy).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions