Chris@14: Chris@14: */ Chris@14: Chris@14: namespace WebDriver\Service; Chris@14: Chris@14: /** Chris@14: * WebDriver\Service\CurlServiceInterface class Chris@14: * Chris@14: * @package WebDriver Chris@14: */ Chris@14: interface CurlServiceInterface Chris@14: { Chris@14: /** Chris@14: * Send protocol request to WebDriver server using curl extension API. Chris@14: * Chris@14: * @param string $requestMethod HTTP request method, e.g., 'GET', 'POST', or 'DELETE' Chris@14: * @param string $url Request URL Chris@14: * @param array $parameters If an array(), they will be posted as JSON parameters Chris@14: * If a number or string, "/$params" is appended to url Chris@14: * @param array $extraOptions key=>value pairs of curl options to pass to curl_setopt() Chris@14: * Chris@14: * @return array Chris@14: * Chris@14: * @throws \WebDriver\Exception\CurlExec only if http error and CURLOPT_FAILONERROR has been set in extraOptions Chris@14: */ Chris@14: public function execute($requestMethod, $url, $parameters = null, $extraOptions = array()); Chris@14: }