- 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 'Follow Location Enabled: ' . ($curl_helper->followLocation ? 'Y' : 'N') . '<br/>'; $curl_helper->CloseConnection(); $curl_helper->followLocation = true; $curl_helper->Send('http://www.google.com', false); echo 'Follow Location Enabled: ' . ($curl_helper->followLocation ? 'Y' : 'N') . '<br/>'; $curl_helper->CloseConnection();
- save changes
- in Web Browser:
- open /index.php
- confirm, that page output contains this text:
Follow Location Enabled: N Follow Location Enabled: Y