Plan:
- add
array $extra_options = array() to the CurlClient:__construct method
- in the
CurlClient:__construct method store given $extra_options array into a new protected $extraOptions class property
- in the
CurlClient::sendRequest method use curl_setopt function to set $this->extraOptions to the current cURL connection
Motivation
This should cover the following use cases (maybe some future cases also):
Plan:
array $extra_options = array()to theCurlClient:__constructmethodCurlClient:__constructmethod store given$extra_optionsarray into a new protected$extraOptionsclass propertyCurlClient::sendRequestmethod usecurl_setoptfunction to set$this->extraOptionsto the current cURL connectionMotivation
This should cover the following use cases (maybe some future cases also):