Skip to content

Allow specifying custom Curl options in curl_options config parameter#136

Open
hackel wants to merge 4 commits intoCodeSleeve:masterfrom
arcstone:curl
Open

Allow specifying custom Curl options in curl_options config parameter#136
hackel wants to merge 4 commits intoCodeSleeve:masterfrom
arcstone:curl

Conversation

@hackel
Copy link

@hackel hackel commented Jul 9, 2015

Also added error handling for Curl failures. Still need to add this to documentation if approved. I did this because I wanted to use a proxy server when adding an attachment by URL. It is very straightforward: Example config file (stapler.php):

    'curl_options' => [
        CURLOPT_PROXY => '127.0.0.1:3128',
        CURLOPT_SSL_VERIFYHOST => false,
    ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant