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

The curl rule proxybypass is never applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.1
    • 2.6
    • Libraries
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-42985-master
    • Hide
      1. Save the example from the description in a test.php page
        • You must use your .moodle.local address
      2. Set up a fake proxy host in your Moodle settings
      3. Do not set your .moodle.local host in the proxybypass setting
      4. Make sure the curl request returns an error
      5. Add your .moodle.local to proxybypass
      6. Make sure the curl request works fine
      Show
      Save the example from the description in a test.php page You must use your .moodle.local address Set up a fake proxy host in your Moodle settings Do not set your .moodle.local host in the proxybypass setting Make sure the curl request returns an error Add your .moodle.local to proxybypass Make sure the curl request works fine

      While working on MDL-42951, I realised that the setting proxybypass was not observed.

      Set Moodle to use a fake proxy server, and add your .moodle.local address to the proxybypass. The request below should work.

      require_once($CFG->dirroot . '/lib/filelib.php');
      $curl = new curl(array('debug' => true));
      $curl->post('http://fred.moodle.local/im/test.php');
      

            fred Frédéric Massart
            fred Frédéric Massart
            Petr Skoda Petr Skoda
            Damyon Wiese Damyon Wiese
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.