Provide redirection follow capabilities in HTTP API when safe_mode or open_basedir are set
|Reported by:||sivel||Owned by:||dd32|
When safe_mode or open_basedir are set it seems that the only transport that can "follow" the redirects is fsockopen. All others stop after the initial request.
Simplepie seems to have a method of "manually" following by checking to see if the last response was a 30x and checks the number of redirects. If the last response was a 30x and the redirects that happened were less than configured it does a "manual" follow by requesting, grabbing the 'Location' header and then requesting again until it either hits the redirect limit or a non 30x response code.