Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurlServiceInterface.php

function CurlServiceInterface::execute

Send protocol request to WebDriver server using curl extension API.

Parameters

string $requestMethod HTTP request method, e.g., 'GET', 'POST', or 'DELETE':

string $url Request URL:

array $parameters If an array(), they will be posted as JSON parameters: If a number or string, "/$params" is appended to url

array $extraOptions key=>value pairs of curl options to pass to curl_setopt():

Return value

array

Throws

\WebDriver\Exception\CurlExec only if http error and CURLOPT_FAILONERROR has been set in extraOptions

1 method overrides CurlServiceInterface::execute()
CurlService::execute in vendor/lullabot/php-webdriver/lib/WebDriver/Service/CurlService.php
Send protocol request to WebDriver server using curl extension API.

File

vendor/lullabot/php-webdriver/lib/WebDriver/Service/CurlServiceInterface.php, line 34

Class

CurlServiceInterface
WebDriver\Service\CurlServiceInterface class

Namespace

WebDriver\Service

Code

public function execute($requestMethod, $url, $parameters = null, $extraOptions = array());

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal