I am testing my Zend Framework application using Selenium and PHPUnit. I have a test that should open a URL containing an encoded URL.
$redirectToLocation = urlencode('/myothercontroller/action'); // %2Fmyothercontroller%2Faction
$this->openAndWait('/controller/action/thenRedirectTo/' . $redirectToLocation);
But when I run my test, the browser tried to open the decoded URL:
/controller/action/thenRedirectTo//myothercontroller/action
What should I do to get selenium to open an encoded URL?
Update: Actually ... it turns out that selenium does the job, but it seems like Apache decrypts the URL before it gets to the controller:
The requested URL /controller/action/thenRedirectTo//myothercontroller/action was not found on this server.
How do I fix this problem?
: , : http://old.nabble.com/URL-Encoding-td18850769.html. , base64 URL-, . , , , .
: , , , Zend Framework . , ?