minkphp / Mink

PHP web browser emulator abstraction
https://mink.behat.org/
MIT License
1.6k stars 280 forks source link

GET Request #834

Closed augisbud closed 2 years ago

augisbud commented 2 years ago

Hello, I might be very much missing something in the documentation, however I'm having an issue where I want to visit a page 'https://example.com?TEST=DEV' however it's redirecting to 'https://example.com'

$mink->getSession()->visit('https://example.com?TEST=dev');

How should I approach the GET parameters?

I'm using the ChromeDriver if neccesary.

aik099 commented 2 years ago

Hello,

Mink, as far as I remember, doesn't perform any redirects. Maybe your website is doing that?

Try showing $_SERVER['REQUEST_URI'] on the visited to see if parameter actually is supplied by Mink.

Another wild guess: something if performing http->https redirect and looses all query string.

augisbud commented 2 years ago

You were right, the page somehow mishandled the GET request.