You are here

public function InstapageCmsPluginDrupal8Connector::remotePost in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginDrupal8Connector.php \InstapageCmsPluginDrupal8Connector::remotePost()

Performs remote POST request.

@uses InstapageCmsPluginDrupal8Connector::remoteRequest().

Parameters

string $url URL for the request.:

array $data Data that will be passed in the request.:

array $headers Headers for the request.:

Return value

array Request result in a form of associative array.

File

core/connectors/InstapageCmsPluginDrupal8Connector.php, line 314

Class

InstapageCmsPluginDrupal8Connector
Class that utilizes native Drupal 8 functions to perform actions like remote requests and DB operations.

Code

public function remotePost($url, $data, $headers = array()) {
  return $this
    ->remoteRequest($url, $data, $headers, 'POST');
}