Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1052

Add manual implementation of "follow redirect" functionality, when "kCurlHelper" is used in Safe Mode

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.2.0-RC1
    • Component/s: Data Management
    • Labels:
      None

      Description

      Curl is wonderful program, that allows to make requests to any other website via http and https protocols and get requested data.
      These days, when CDN are very popular the url you're trying to reach will most likely redirect you to equivalent url, but located closer to you. This will allow to speedup download.

      Usually curl can process such redirect automatically thanks to FOLLOW_LOCATION option, however due PHP limitations it can't do so, while either safe_mode or open_basedir options are set in php.ini.
      Attached patch emulates FOLLOW_LOCATION behavior by following "Location:" header in received response, when curl isn't able to do it itself.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: