\r\n

51Degrees Device Detection PHP  4.3

Device detection services for 51Degrees Pipeline

fiftyone\pipeline\cloudrequestengine\HttpClient Class Reference

Public Member Functions

 makeCloudRequest ($type, $url, $content, $originHeader)
Internal helper method to make a cloud request uses CURL if available, falls back to file_get_contents. More...

Member Function Documentation

◆ makeCloudRequest()

fiftyone\pipeline\cloudrequestengine\HttpClient::makeCloudRequest (   $type,
  $url,
  $content,
  $originHeader  
)

Internal helper method to make a cloud request uses CURL if available, falls back to file_get_contents.

Parameters
string - type Method use to send HTTP request
string - url
string - content Data to be sent in the post body
string - originHeader The value to use for the Origin header
Returns
array associative array with data and error properties error contains any errors from the request, data contains the response