Opened 17 years ago
Closed 16 years ago
#10417 closed enhancement (duplicate)
Provide redirection follow capabilities in HTTP API when safe_mode or open_basedir are set
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.8.1 |
| Component: | HTTP API | Keywords: | |
| Focuses: | Cc: |
Description
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.
Change History (5)
#2
@
17 years ago
I believe one of the transports includes a check to see if its running under safemode, and not to use it in that scenario.
Just need some extra constraints added to the ::test(); methods IMO
Just to cross reference 2 other tickets:
#10416
#10418