Coder Social home page Coder Social logo

Goutte Proxy about mink HOT 4 CLOSED

minkphp avatar minkphp commented on May 20, 2024
Goutte Proxy

from mink.

Comments (4)

everzet avatar everzet commented on May 20, 2024

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

from mink.

zombor avatar zombor commented on May 20, 2024

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.

from mink.

everzet avatar everzet commented on May 20, 2024

Ok, got it. Will do ;-)

from mink.

everzet avatar everzet commented on May 20, 2024

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.

from mink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.