Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73171

function 'download_file_content' returns unexpected htttp request status of 0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Cannot Reproduce
    • 3.10.8
    • None
    • General
    • None
    • MOODLE_310_STABLE

    Description

      the Moodle function 'download_file_content()' does not work as it should. It retuns an Http status of 0 continuously. We tested the URL on its own (not using the Moodle) , without any problem it is possible to open the URL, However, when attempting to open using download_file_contents() it will permanently return a http status of 0. It appears that the method incorrectly returns a HTTP request status of 0. This is wrong, as it should return a value of 200. Currently the only work around available is using the PHP method file_get_contents until this issue is resolved.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              1972104 Frederick
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m