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

curl class doesn't format header correctly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6
    • 2.6.1
    • Libraries

    Description

      https://github.com/moodle/moodle/blob/MOODLE_26_STABLE/lib/filelib.php#L3092-3099
      libcurl sends "Expect: 100-continue" to web server, thus server responses something likes this:
      HTTP/1.1 100 Continue
      [blank line]
      [full http response here]

      Above code prevent formatHeader() format the real http response header, it causes curl->getResponse() returns empty array.

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              dongsheng Dongsheng Cai
              Dan Poltawski Dan Poltawski
              Sam Hemelryk Sam Hemelryk
              Rossiani Wijaya Rossiani Wijaya
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jan/14