davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
349 stars 341 forks source link

[support] curl options to guzzle #58

Closed quazardous closed 7 years ago

quazardous commented 7 years ago

How can I passe curl options to guzzle ?

http://docs.guzzlephp.org/en/latest/faq.html?highlight=curlopt#how-can-i-add-custom-curl-options

$service = new FindingService([
                'credentials' => [...],
                'globalId'    => ...,
                'curl' => [...],
            ]);
davidtsadler commented 7 years ago

There is currently no way to set the PHP cURL options but I can look at adding such a configuration option to the SDK. Depending on what options you are wanting to set, there may already be a corresponding configuration option. For example CURLOPT_VERBOSE is available through the debug option.

quazardous commented 7 years ago

thx David ! I have asked the question in guzzle/guzzle#1682

PS I'm a David too