Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can libcURL be configured to use my .curlrc when used from PHP

I'm using Drush and Drush Make to automate download of Drupal module from a corporate network behind a NTLM-SSPI Proxy. Drush and Drush Make uses cURL to download files. cURL supports NTLM-SSPI Proxy. I configured cURL for the proxy in my .curlrc file

--proxy proxy.example.com:8080
--proxy-ntlm
--proxy-user user:password

Drush itself is able to download modules from drupal.org because it uses curl from the command line. But Drush Make uses the PHP cURL API (libcurl) . It looks like when used this way, cURL does not use the configuration in my .curlrc file.

Is there a way to configure libcurl/PHP cURL with a .curlrc file ?

like image 683
Pierre Buyle Avatar asked Sep 13 '10 07:09

Pierre Buyle


1 Answers

No, the entire .curlrc parser and all associated logic is only present in the command line tool code. It is not included in the library at all. (and the PHP/CURL binding is only using libcurl the library, not the command line tool)

like image 154
Daniel Stenberg Avatar answered Sep 20 '22 04:09

Daniel Stenberg