Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goutte Proxy #8

Closed
zombor opened this issue Apr 13, 2011 · 4 comments
Closed

Goutte Proxy #8

zombor opened this issue Apr 13, 2011 · 4 comments

Comments

@zombor
Copy link
Contributor

zombor commented Apr 13, 2011

Is it possible to set a proxy when using Goutte with mink?

@everzet
Copy link
Contributor

everzet commented Apr 15, 2011

I'm not sure. What usecase creates this need?

@zombor
Copy link
Contributor Author

zombor commented Apr 15, 2011

Our QA environment is htaccess protected outside our LAN (when we work at home). In cucumber, we would set a proxy with Celerity based on which profile we were using that would let us through when we were working remotely.

I did a search in Goutte and it seems like it does support it, I'm just not sure how to hook it up elegantly with Mink. You can set proxy_host using setConfig() in the Curl class.

@everzet
Copy link
Contributor

everzet commented Apr 16, 2011

Ok, got it. Will do ;-)

@everzet
Copy link
Contributor

everzet commented Apr 21, 2011

Update to latest Mink version and you'll be able to do something like this:

# behat.yml
default:
    environment:
        parameters:
            start_url: http://en.wikipedia.org/
            goutte:
                zend_config:
                    adapter:        Zend\Http\Client\Adapter\Proxy
                    proxy_host:  proxy.myhost.com
                    proxy_port:  8080
imports:
    - mink/behat.yml

Read about available parameters http://framework.zend.com/manual/en/zend.http.client.adapters.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants