Skip to content

Remove proxy option #1647

@PhMemmel

Description

@PhMemmel

Currently the code uses native php curl and has some additional logic to handle proxy settings including needing the admin to configure if proxies should be used or not.

Instead the moodle http_client class should be used which is a wrapper for a guzzle client. It will automatically respect the moodle internal proxy settings which should be far more stable and reduces the overhead of code that qtype_stack needs to maintain.

Additionally, there is a problem which could be considered as a qtype_stack bug somehow:

See the following setting:

  • Machine has configured proxy settings, but misses out specifying which hosts should not be accessed via proxy
  • Moodle proxy settings are applied properly including machines that should not be accessed via proxy
  • For accessing the maxima server the connection needs to be direct (not using proxy)

In this scenario plain php curl will use the proxy settings of the environment which are wrong, so qtype_stack tries to reach the maxima server through the proxy even if the moodle settings (in both modes "Server" and "Server (proxy)" !!!) are properly configured.

Irritating setup bugs could be avoided if the moodle http_client class is being used. In this case the moodle proxy settings are always used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions