Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-integrator fusiondirectory-integrator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-integratorfusiondirectory-integrator
  • Merge requests
  • !50

Resolve "[Integrator] - Web Service call requires a definition of an HTTP_AGENT"

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged dockx thibault requested to merge 41-integrator-web-service-call-requires-a-definition-of-an-http_agent into dev 5 months ago
  • Overview 0
  • Commits 2
  • Pipelines 3
  • Changes 1

Related to #41 (closed)

Viewing commit 5ebb1c6f
Prev
Show latest version
1 file
+ 5
− 5

    Preferences

    File browser
    Compare changes
  • 5ebb1c6f
    dockx thibault
    :ambulance: phpcs · 5ebb1c6f
    dockx thibault authored 5 months ago
src/FusionDirectory/Rest/WebServiceCall.php
+ 5
− 5
  • View file @ 5ebb1c6f

  • Edit in single-file editor

  • Open in Web IDE


@@ -34,8 +34,8 @@ class WebServiceCall
$this->ch = !empty($URL) ? curl_init($URL) : curl_init($this->URL);
// We require to set a proper http_agent
$os = PHP_OS;
$phpVersion = PHP_VERSION;
$os = PHP_OS;
$phpVersion = PHP_VERSION;
$customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib";
// Manage a trick to perform refresh on user DN
@@ -48,7 +48,7 @@ class WebServiceCall
if (!empty($method)) {
$this->method = $method;
// set the curl options based on the method required.
switch (strtolower($this->method)) {
case 'patch' :
@@ -113,8 +113,8 @@ class WebServiceCall
$ch = curl_init($this->URL);
// We require to set a proper http_agent
$os = PHP_OS;
$phpVersion = PHP_VERSION;
$os = PHP_OS;
$phpVersion = PHP_VERSION;
$customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib";
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
Assignee
dockx thibault's avatar
dockx thibault
Assign to
0 Reviewers
None
Request review from
Labels
2
Added PJ1802-0188
2
Added PJ1802-0188
    Assign labels
  • Manage project labels

Milestone
FusionDirectory Integrator 1.2
FusionDirectory Integrator 1.2 (expired)
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 Participant
dockx thibault
Reference: fusiondirectory/fusiondirectory-integrator!50
Source branch: 41-integrator-web-service-call-requires-a-definition-of-an-http_agent

Menu

Explore Projects Groups Topics Snippets