Test Plan (technical)
- anywhere
- in IDE:
- open /index.php file for editing
- replace $application->Run(); line with the following code:
/** @var kCurlHelper $curl_helper */ $curl_helper = $application->recallObject('CurlHelper'); $curl_helper->followLocation = false; $curl_helper->Send('http://www.google.com', false); echo 'Redirect URL (not following): [' . $curl_helper->getInfo(CURLINFO_REDIRECT_URL) . ']' . PHP_EOL; echo 'Effective URL (not following): [' . $curl_helper->getInfo(CURLINFO_EFFECTIVE_URL) . ']' . PHP_EOL; $curl_helper->CloseConnection(); $curl_helper->followLocation = true; $curl_helper->Send('http://www.google.com', false); echo 'Redirect URL (following): [' . $curl_helper->getInfo(CURLINFO_REDIRECT_URL) . ']' . PHP_EOL; echo 'Effective URL (following): [' . $curl_helper->getInfo(CURLINFO_EFFECTIVE_URL) . ']' . PHP_EOL; $curl_helper->CloseConnection();
- save changes
- in Web Browser:
- open /index.php
- confirm, that the View Source of page output contains this text:
Redirect URL (not following): [https://www.google.com/?gws_rd=ssl] Effective URL (not following): [http://www.google.com/] Redirect URL (following): [] Effective URL (following): [https://www.google.com/?gws_rd=ssl]
Test Plan (human)
- run test from D251