Open
Description
Hello,
In config/geocoder.php, how can I set the proxy?
I tried that :
return [
// Providers get called in the chain order given here.
// The first one to return a result will be used.
'providers' => [
'Geocoder\Provider\GoogleMapsProvider' => ['fr-FR', 'Île-de-France', true],
'Geocoder\Provider\FreeGeoIpProvider' => null,
],
'adapter' => new Geocoder\HttpAdapter\CurlHttpAdapter(['http_proxy' => 'myproxy.domain.name']),
];
But it doesn't work :-/
Activity
mikebronner commentedon Oct 1, 2016
This might not be possible just yet. Have you found a work-around in the meantime? None of the adapters I seem to document how to implement a proxy. The library
egeloen/http-adapter
(https://github.com/egeloen/ivory-http-adapter) used for adapters in Geocoder 3.x has since been deprecated, and doesn't document use of proxies (at least that I can find) either.If anyone can contribute to this discussion on how to implement proxies with Geocoder 3.x, please let us know. :)
mikebronner commentedon Mar 20, 2017
Closing this for now. No plans to implement unless someone can submit a PR for this, or a work-around can be documented. Haven't heard back from OP, please re-open if this is a critical issue.
12 remaining items