Closed korbav closed 8 years ago
You are totally right. The CURLOPT_SSL_VERIFYPEER should not be set in the setUrl method as this has nothing to do with its purpose. This option should be a default configuration option, so that you are able to change it.
Can you please open a PR with these changes?
Thanks a lot!
For sure, PR is submitted
As CURLOPT_SSL_VERIFYPEER is set in the setUrl method and as the setUrl method is called after binding options to the curlOptionsHandler, it's not possible to override the CURLOPT_SSL_VERIFYPEER parameter, this should be at least mentioned in the documentation but it would be better if it could be possible because one could trust an https API without having any valid certificate for it, this is actually the purpose of the CURLOPT_SSL_VERIFYPEER option.