title: Behat, mink and goutte: current URI must be an absolute URL
body: <p>I'm having some problems with Behat and Mink. The driver used is Goutte. I'm trying to test my Symfony 2.1 application.</p>
  
  <p>My <em>behat.yml</em>:</p>
  
  <pre><code>default:
  extensions:
      Behat\Symfony2Extension\Extension:
          mink_driver: true
      Behat\MinkExtension\Extension:
          base_url: 'http://localhost/project/web/app_dev.php'
          goutte: ~
  </code></pre>
  
  <p>My <em>test.feature</em>:</p>
  
  <pre><code>Feature: Test
     In order to log-in
     As a user
     I need to be able to use the login-form
  
     Scenario: Logging in
         Given I am on "/login"
         When I fill in "username" with "admin"
         And I fill in "password" with "password"
         And I press "_submit"
         Then show last response
         Then I should see "Hello"
  </code></pre>
  
  <p>When I try to execute the tests (on Windows 7):</p>
  
  <pre><code>bin\behat @MyTestBundle
  </code></pre>
  
  <p>The tests stop at </p>
  
  <blockquote>
    <p>And I press "_submit"</p>
  </blockquote>
  
  <p>With this error:</p>
  
  <pre><code>Current URI must be an absolute URL ("/app_dev.php").
  </code></pre>
  
  <p>I've already tried almost all possible base_url paths and I didn't managed to get it work. </p>
  
  <p>Do You have any idea's how to fix this problem?</p>
  
  <p>The form I try to submit:</p>
  
  <pre><code>&lt;form action="/app_dev.php/login_check" class="form-horizontal" method="post"&gt;
      &lt;fieldset&gt;
          &lt;div class="control-group"&gt;
              &lt;label class="control-label" for="username"&gt;Nazwa użytkownika:&lt;/label&gt;
  
              &lt;div class="controls"&gt;&lt;input type="text" id="username" name="_username" value=""/&gt;&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="control-group"&gt;
              &lt;label for="password" class="control-label"&gt;Hasło:&lt;/label&gt;
  
              &lt;div class="controls"&gt;&lt;input type="password" id="password" name="_password"/&gt;&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="control-group"&gt;
              &lt;div class="controls"&gt;
                  &lt;label for="remember_me" class="checkbox"&gt;
                      &lt;input type="checkbox" id="remember_me" name="_remember_me" value="on"/&gt;Nie wylogowuj mnie
                  &lt;/label&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
          &lt;div class="form-actions"&gt;
              &lt;input type="submit" class="btn-primary" id="_submit" name="_submit"
                     value="Zaloguj"/&gt;
              &lt;a href="/app_dev.php/register/" class="btn btn-success"&gt;Rejestracja&lt;/a&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>