Skip to content

How to set curl proxy in config ? #45

Open
@philippejadin

Description

@philippejadin

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

added this to the 0.7 milestone on Sep 30, 2016
self-assigned this
on Sep 30, 2016
removed this from the 0.7 milestone on Oct 1, 2016
removed their assignment
on Oct 1, 2016
mikebronner

mikebronner commented on Oct 1, 2016

@mikebronner
Member

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

mikebronner commented on Mar 20, 2017

@mikebronner
Member

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    How to set curl proxy in config ? · Issue #45 · geocoder-php/GeocoderLaravel